method
Decimal.neg
Decimal.neg(a) -> Decimal
Returns -a at the same scale — the same magnitude with the opposite sign.
Example
program Demo {
handler Step phase Update {
let refund = Decimal.neg(charge)
}
}Decimal.neg(a) -> Decimal
Returns -a at the same scale — the same magnitude with the opposite sign.
program Demo {
handler Step phase Update {
let refund = Decimal.neg(charge)
}
}