Equana

Back to Type Conversion

float128

Convert to 128-bit float (quad precision, ~31 digits).

Syntax

float128(x) → Float128 value

Backends

TypeScript

Description

Produces a double-double value (hi + lo pair) giving ~106 significant bits. Scalar float128 arithmetic (+, -, *, /, ^, sqrt, comparisons) is computed in genuine extended precision. See the Quad Precision tutorial.

Parameters

NameDescription
xValue to convert

Returns

Float128 value

Examples

Try It
>> float128(1) / float128(3)
0.3333333333333333333333333333333

See Also