API Reference › Decimal › Decimal.scale
method

Decimal.scale

Decimal.scale(d) -> int

Returns the current scale — how many digits sit after the decimal point.

Example

program Demo {
  handler Step phase Update {
    let places = Decimal.scale(price)
  }
}
← All symbols