parseFloat

IMPORTANT!  
Starting with v24.3, this is deprecated.

Converts a string to a floating-point number.

Syntax

function parseFloat(number: string): number
 
Parameter Description
number String containing the floating-point number in text format.

Return Value

Returns the numeric floating-point data type representation of the string.

Examples