[Maxima] strange behaviour with simple decimals
Michel Van den Bergh
michel.vandenbergh at uhasselt.be
Thu Apr 12 13:28:39 CDT 2007
This problem is easily solved in object oriented languages.
For example in python you can create genuine decimal numbers
if you really want to (for financial calculations I presume).
They follow this standard
It seems less clear how to do this cleanly within the maxima
PS. To construct the decimal number 1.4 you use the constructor
Decimal("1.4"). Note the use of strings. Something like
Decimal(1.4) can not work since the number 1.4 would be converted
to binary before the constructor has a chance to look at it.
More information about the Maxima