Is there an equivalent of the decimal type in D?
BCS
ao at pathlink.com
Fri Jan 19 15:33:07 PST 2007
Reply to Myron,
> Hello.
>
> 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?
>
> Thanks,
>
> Myron.
>
Not yet. It could be done as a lib, even using BCD opcodes. I might give
it a crack later, but I have a lot on my plate right now.
More information about the Digitalmars-d-learn
mailing list