Is using floating point type for money/currency a good idea?

Boqsc vaidas.boqsc at gmail.com
Mon May 20 11:10:32 UTC 2019


https://dlang.org/spec/float.html

I'm frozen in learning basics of D lang since I want to create a 
simple game and I really would like a clean and simple code, 
however to me floating points are magic.

https://wiki.dlang.org/Review_Queue
Since std.decimal is still work in progress and apparently its 
development is stuck for a while, should I just somehow use 
floating point to store currency or wait until Decimal package 
will be finally included into std Phobos of D lang?


More information about the Digitalmars-d-learn mailing list