Pudu programming language
Menu
API reference

Std.Decimal.toFloat64

1 declaration

fn

toFloat64: Decimal -> Float64

This is a callable function.

What it does

The nearest binary floating value.

Lossy in both the ways it can be: a coefficient may carry more significant

digits than Float64 holds, and a terminating base-ten fraction is usually

not one in base two. Use it to hand a number to something that needs a

float, never to compute with.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.

Back to Std.DecimalSearch related declarations