-
class
A DMoney is the same as a BMoney but will be treated
differently when stored in the database.
A BMoney is stored as a DOUBLE for the value and an INTEGER for the scale.
Adds a BMoney to this value and returns a new object.
Check the scale of the given money value.
Divides a BMoney by double and returns a new object.
Inverts this money value.
Multiplies this BMoney by a double and returns a new object.
Returns the smallest positive value.
Ex.: if scale is 2 --> 0.01 will be returned.
Subtracts a BMoney from this value and returns a new object.
Adds a BMoney to this value and returns a new object.
Check the scale of the given money value.
double
Divides a BMoney by this value and returns a new object.
Subtracts a BMoney from this value and returns a new object.
Creates a BMoney from a BMoney (useful to rescale)
Creates a DMoney from a BMoney (useful to rescale)