Lists Home |
Date Index |
Rick Jelliffe scripsit:
> The concrete example is the one currently under discussion in various places: that in
> XML Schemas datatypes you cannot represent any exact amounts that
> have decimal positions. So the decimal "1.1" is not the exact number 1.1.
> This will be well-known to most people who have done undergraduate
> computer science, and for a catch up, see Sun's BigDecimal documentation.
So bag BigDecimal and use a real decimal-number class such as
netrexx.lang.Rexx, which represents 1.1 exactly and even knows that
2 * 1.20 is 2.40.
John Cowan email@example.com http://www.ccil.org/~cowan
Most languages are dramatically underdescribed, and at least one is
dramatically overdescribed. Still other languages are simultaneously
overdescribed and underdescribed. Welsh pertains to the third category.