Hilaire,
unless you have very (very very) specific needs, I would strongly
discourage you to use Float for anything related to Money or Percentages.
We use a subclass of Object for MonetaryAmounts and implemented most of
the protocol of Magnitude. But, most importantly, the amount instVar is
made sure to always hold instances of ScaledDecimal (in VA Smalltalk,
that is).
Joachim
Am 11.01.15 um 10:25 schrieb Hilaire:
Le 11/01/2015 09:06, stepharo a écrit :
Hilaire
what is your requirement?
Stef
I want to create a currency object, basically a Float with an attribute
to specify the currency unit.
Hilaire