parseFloat
IMPORTANT!
Starting with v24.3, this is deprecated.
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
In this example, we save the 1244.256 text string into a floating-point numeric variable called operand.
var operand = parseFloat('1244.256');