Skip to content

BigInt.Shift

Name - Description Default Type
<input> Big integer represented as bytes. Bytes
<output> Outputs the big integer with its decimal point shifted represented as bytes. Bytes
By The number of decimal places to shift the input big integer by. A positive number shifts the decimal point to the right, while a negative number shifts it to the left. 0 IntVar(Int)

This shard shifts the decimal point of the input big integer by the amount specified in the By parameter.

Examples

1
2
3
4
5
6
7
4200 (BigInt) = .expected

42 (BigInt)
(BigInt.Shift
 ;:By
 2)
(BigInt.Is .expected) (Assert.Is true true)