API Reference › Decimal › Decimal.neg
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)
  }
}
← All symbols