Skip to content

float

const float: (x: string | number) => number = builtins.float

Defined in: packages/pythonlib/src/index.ts:180

Convert a value to a floating-point number.

Parameters

ParameterTypeDescription
xstring | numberThe value to convert

Returns

number

The float value

See

Python float()