Pudu programming language
Menu
API reference

Std.Decimal.scale

1 declaration

fn

scale: Decimal -> Int

This is a callable function.

What it does

How many fractional digits a value carries.

This is the one place a trailing zero is visible: scale(1.50d) is 2 and

scale(1.5d) is 1, even though the two compare equal.

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