Operations on decimals:
- sqrt(): It is a function that computes the square root of a decimal number.
- exp(): It is a function that returns the e^x exponent of a decimal number.
- ln(): It is a function used for computation of natural log of a decimal number.
- log10(): It is a function that is used for computation of log (base 10) of a decimal number.
- as_tuple(): It returns the decimal number as a tuple consisting of three arguments, sign (0 for + and 1for-), digits and exponent value.
- fma(a,b): fma stands for fused multiply and add. It is used for computation of (num*a) + b from the numbers provided in the argument. There is no rounding of (num*a) in this function.
- compare(): It is a function used for the comparison of decimal numbers. It will return 1 if the first decimal argument is greater than the second one, -1 if the decimal argument is smaller than the second and 0 if both of them are equal. The signs of the arguments are neglected.
- compare_total_mag(): It compares the total magnitude of decimal numbers. It will return 1 if the first decimal argument is greater than the second one, -1 if the decimal argument is smaller than the second and 0 if both of them are equal. The signs of the arguments are neglected.
- copy_abs(): It is a function that prints the absolute value of a decimal number provided as argument.
- copy_negate(): It is a function that prints the negation of a decimal number provided as argument.
- copy_sign(): It is a function that will print the first argument provided, but it will take the sign from the second argument.
- max(): It is a function used for computing the maximum of two decimal numbers.
- min(): It is a function used for computing the minimum of two decimal numbers.
