code: public static function normalizeNumber($value)
      {
          $value = (string)$value;
  
          $localeInfo = localeconv();
          $decimalSeparator = isset($localeInfo['decimal_point']) ? $localeInfo['decimal_point'] : null;
  
          if ($decimalSeparator !== null && $decimalSeparator !== '.') {
              $value = str_replace($decimalSeparator, '.', $value);
          }
  
          return $value;
      }
docs: Returns string representation of number value with replaced commas to dots, if decimal point
  of current locale is comma.
  @param int|float|string $value
  @return string
  @since 2.0.11