Skip to content

BigInt.Abs

Name Mandatory Description Default Type
⬅️ Input Big integer represented as bytes. Bytes
Output ➡️ The resulting big integer with an absolute value, represented as bytes. Bytes

This shard computes the absolute value of a big integer.

Examples

1
2
3
4
5
6
7
8
9
@wire(main-wire {
  1 | BigInt = expected

  -1 | BigInt
  BigInt.Abs
  BigInt.Is(expected) | Assert.Is(true true)
} Looped: true)

{logic-behavior: main-wire}