Converts a value to a decimal. If the value cannot be converted to a decimal, $toDecimal errors.
If the value is null or missing, $toDecimal returns null.
This is just an alias for $toDouble in this library.
Converts a value to a double. If the value cannot be converted to an double, $toDouble errors. If the value is null or missing, $toDouble returns null.
Converts a value to a decimal. If the value cannot be converted to a decimal, $toDecimal errors. If the value is null or missing, $toDecimal returns null. This is just an alias for
$toDoublein this library.