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)
}
}Decimal.scale(d) -> int
Returns the current scale — how many digits sit after the decimal point.
program Demo {
handler Step phase Update {
let places = Decimal.scale(price)
}
}