On Tuesday, 7 June 2016 at 05:52:33 UTC, ketmar wrote:
On Tuesday, 7 June 2016 at 05:38:25 UTC, H. S. Teoh wrote:

Same thing goes with a fixed point type. People keep complaining about it, but honestly if I were in the finance sector I'd implement the type myself in a couple o' days and put it up on code.dlang.org or something. It's not *that* hard.

i've seen some implementations already (and, of course, made my own too). it is not that hard, and it working nice. so yes, i'm all for that. and literals of various custom types can be implemented with CTFE magic, like `octal!`, for example.

Well, it is a lot of work to get the base 10 IEEE 754-2008 implementation conformant. Fortunately IBM has already done it under a BSD license:

http://www.bytereef.org/mpdecimal/index.html

So all you base-10 dudes have to do is to translate it into D.

Reply via email to