Skip to contents

Compare two arbitrary-precision integers

Usage

morie_big_cmp(a, b)

Arguments

a, b

Values coercible by morie_bigint().

Value

-1, 0 or 1.

Examples

morie_big_cmp(morie_bigint("123456789012345678901234567890"),
              morie_bigint("123456789012345678901234567891"))
#> [1] -1