Symfony\Component\Intl\NumberFormatter\NumberFormatter::convertValueDataType
Returns the numeric value using the $type to convert to the right data type.
Signature
private function convertValueDataType(mixed
$value,
int
$type )
Parameters
$value
— mixed- The value to be converted
$type
— int- The type to convert. Can be TYPE_DOUBLE (float) or TYPE_INT32 (int)
Returns
- integer|float
- The converted value