Float.parse
Float.parsetextlocale
Group: Conversions
Aliases: from text
Documentation
Parses a textual representation of a float into a float number, returning a Number_Parse_Error
if the text does not represent a valid float.
Arguments
text
: The text to parse into a float.locale
: The locale that specifies the format to use when parsing
Examples
Parse the text "7.6" into a float number.
Float.parse "7.6"