Rational number in our representation is just numerator and denominator. ICE provides information about prices using numerators only. To get a real price you need to get the denominator from a product definition and then divide the numerator on the denominator. To simplify this we decided to use our own representation and always keep the denominator together with the numerator.
For more details please see OnixS::ICE::iMpact::MarketData::RationalNumber
.
We support only limited operations for RationalNumber
. There are no arithmetic operations for this class at all. You can only use the following:
float
or double
).==
, !=
, <
, >
, <=
, >=
).