Calculates the arithmetic square root of Decimal. If the result is an infinite decimal, IEEE 754-2019 decimal128 is used to round the result by default.
Obtains the greatest common divisor of two BigInt instances through calculation. A non-negative number (equivalent to the absolute value of the greatest common divisor) is returned.
Obtains the least common multiple of two BigInt instances through calculation. A positive number (equivalent to the least common multiple of the absolute value) is returned. The value 0 is returned only when any input parameter is 0.
Specifies the enumeration class of overflow policies. A total of three overflow policies are included. When the BigInt and Decimal types are converted to the integer type, different overflow processing policies can be specified.
Specifies a (binary) signed integer of any precision. Cangjie struct BigInt is used for calculation and type conversion of signed integers of any precision.
Decimal is used to represent signed decimal numbers of any precision. The context, result precision, and rounding rule can be specified during operation. Conversions between basic types (such as Int, UInt, String, and Float) and the BigInt type are supported. Basic attributes of Decimal objects can be queried. Basic mathematical operations are supported. Basic capabilities such as object comparison, hashing, and string printing are provided.