Apa v0.4.1 ApaComp View Source

APA : Arbitrary Precision Arithmetic - Comparision - ApaComp.

Link to this section Summary

Functions

Comparison - internal function - please call Apa.comp(left, right, sclae, precision) The 'precision' of an ApaNumber is the total count of significant digits in the whole number, that is, the number of digits to both sides of the decimal point. The 'scale' of an ApaNumber is the count of decimal digits in the fractional part, to the right of the decimal point In reference to bcmath I call this function bc_comp

Link to this section Functions

Link to this function

bc_comp(left, right, precision, scale)

View Source
bc_comp(String.t(), String.t(), integer(), integer()) :: integer() | Exception

Comparison - internal function - please call Apa.comp(left, right, sclae, precision) The 'precision' of an ApaNumber is the total count of significant digits in the whole number, that is, the number of digits to both sides of the decimal point. The 'scale' of an ApaNumber is the count of decimal digits in the fractional part, to the right of the decimal point In reference to bcmath I call this function bc_comp