This module contains functions that gives an interface to the CORBA fixed type.
The type
-record(fixed, {digits, scale, value}).
where
Since the Value part is represented by an integer, it is vital that the Digits and Scale values are correct. This also means that trailing zeros cannot be left out in some cases:
Leading zeros can be left out.
For your convenience, this module exports functions which handle
unary (
A quotient may have an arbitrary number of decimal places, which is denoted by a scale of Sinf.
This function creates a new instance of a
Returns the TypeCode which represents the supplied Fixed type. If the parameter is not of the correct type, an exception is raised.
Performs a Fixed type addition. If the parameters are not of the correct type, an exception is raised.
Performs a Fixed type subtraction. If the parameters are not of the correct type, an exception is raised.
Performs a Fixed type multiplication. If the parameters are not of the correct type, an exception is raised.
Performs a Fixed type division. If the parameters are not of the correct type, an exception is raised.
Negates the supplied Fixed type. If the parameter is not of the correct type, an exception is raised.