March 11, 2002 Re: currency type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "Walter" <walter@digitalmars.com> wrote in message news:a6j2vt$1jv9$1@digitaldaemon.com... > Why not just use 64 bit longs? The only thing to do is just plop down a decimal point when converting it to an ascii string. double a = 1.5; long b = 1000; // suppose this is $10.00 long c = a + b; // should be $11.50... |
Copyright © 1999-2021 by the D Language Foundation