Hi,
This code leads to an error:
"On place 10'000 € à un taux de 4 % par année.
Au bout de combien d'années aura-t-on 20'000 € ?"
| annee |
annee := [ :capital |
((capital / 10000) log / (1 + 0.04) log) years
humanReadablePrintString ].
annee value: 20000 .
#printWithCommasOn: is understood only by integer.
In my opinion printHumanReadableOn: should be edited as:
../..
(wholeNanoseconds 'nanosecond')) do: [ :each |
count := (self perform: each first) truncated.
count > 0
../..
Opinion?
Hilaire
--
Dr. Geo
http://drgeo.eu