@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * Parse a string of the form "number unit" where unit is optional. The |
93 | 93 | * results are stored in the $number and $unit parameters. Returns an |
94 | 94 | * error code. |
95 | - * @param $value string to parse |
|
95 | + * @param string $value string to parse |
|
96 | 96 | * @param $number call-by-ref parameter that will be set to the numerical value |
97 | 97 | * @param $unit call-by-ref parameter that will be set to the "unit" string (after the number) |
98 | 98 | * @return integer 0 (no errors), 1 (no number found at all), 2 (number |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * @since 2.4 |
228 | 228 | * |
229 | - * @return float |
|
229 | + * @return string |
|
230 | 230 | */ |
231 | 231 | public function getLocalizedFormattedNumber( $value ) { |
232 | 232 | return $this->getNumberFormatter()->format( $value, $this->getPreferredDisplayPrecision() ); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | /** |
236 | 236 | * @since 2.4 |
237 | 237 | * |
238 | - * @return float |
|
238 | + * @return string |
|
239 | 239 | */ |
240 | 240 | public function getNormalizedFormattedNumber( $value ) { |
241 | 241 | return $this->getNumberFormatter()->format( $value, $this->getPreferredDisplayPrecision(), IntlNumberFormatter::VALUE_FORMAT ); |