Is there an equivalent of the decimal type in D?

Joel C. Salomon JoelCSalomon at Gmail.com
Sat Jan 27 16:25:20 PST 2007


Myron Alexander wrote:
> I want to work with numbers without having to worry about binary representation. I work with currencies and other such values that must be absolute. In Java I have BigDecimal and in Python I have decimal.
> 
> Does D have an equivalent, either at the language level or as a module/class?

The ongoing revision to the IEEE 754 floating-point standard has support 
for decimal; when 754r seems close to ratification would be a good time 
to add it to D.

--Joel


More information about the Digitalmars-d-learn mailing list