PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.23
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.23
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/fields/FrmFieldNumber.php +2 -2 6.256.23 View file →
@@ -128,12 +128,12 @@
128 128 * @return array|int Return `0` if valid. Otherwise, return an array contains two nearest values.
129 129 */
130 130 protected function check_value_is_valid_with_step( $value, $step ) {
131 131 // Count the number of decimals.
132 - $decimals = (int) max( FrmAppHelper::count_decimals( $value ), FrmAppHelper::count_decimals( $step ) );
132 + $decimals = max( FrmAppHelper::count_decimals( $value ), FrmAppHelper::count_decimals( $step ) );
133 133
134 134 // Convert value and step to int to prevent precision problem.
135 - $pow = 10 ** $decimals;
135 + $pow = pow( 10, $decimals );
136 136 $value = intval( $pow * $value );
137 137 $step = intval( $pow * $step );
138 138 $div = $value / $step;
139 139 if ( is_int( $div ) ) {