MathLib Home

Math lib Algorithms

Non-modifying operations

is_zeroReturns true if digits represent zero.

sig_digitsReturns the number of significant digits.

sig_digit_endReturns the end iterator of significant digits

check_digitsReturns true if all digits are compatible with de base.

compareCompares two positive numbers


AdditionAdd two numbers

SubtractionSubtracts two numbers

MultiplicationMultiply two numbers

DivisionDivide two numbers

ModuleReturns the remainder of division


set_digitsFills the digits to represent some value.

to_intConverts, if possible, the digits sequence into an integral value.

parse_numberConverts decimal string digits into digits.

to_stringConverts to string representation.

to_dec_stringConverts to decimal string representation.