diff --git a/core/lib/Drupal/Component/Utility/Number.php b/core/lib/Drupal/Component/Utility/Number.php index d45d6ba..a48b784 100644 --- a/core/lib/Drupal/Component/Utility/Number.php +++ b/core/lib/Drupal/Component/Utility/Number.php @@ -17,14 +17,12 @@ class Number { * * This is based on the number/range verification methods of webkit. * - * This is called by Drupal\Core\Render\Element\Number::validateNumber() to - * validate a numeric field. That function passes the $value parameter as a - * string, as provided on the text field of the form. Besides integers and - * floating numbers, we also support decimal numbers which are not stored in - * IEEE 754 format. In somewhat higher precisions for these numbers, the $step - * value cannot accurately represent the desired precision, when it is passed - * as a float. Passing it as a string bypasses this loss of precision and - * enables a correct calculation of the step validity. + * Besides integers and floating numbers, we also support decimal numbers + * which are not stored in IEEE 754 format. In somewhat higher precisions for + * these numbers, the $step value cannot accurately represent the desired + * precision, when it is passed as a float. Passing it as a string bypasses + * this loss of precision and enables a correct calculation of the step + * validity. * * @param float|string $value * The value that needs to be checked.