Money type

bauss jj_1337 at live.dk
Thu Jan 2 18:30:54 UTC 2020


On Thursday, 2 January 2020 at 17:57:19 UTC, Ola Fosheim Grøstad 
wrote:
>
> So if you want the same representation on the server and the 
> client then it can be useful to use 64bit floating point.

Disagree with that.

You shouldn't even do money calculations on the client side and 
thus you only need the representation of it and hence you can 
just send it formatted as a string.

Of course if your client is not JS or anything similar then there 
is no problem since you can represent the value just fine.


More information about the Digitalmars-d mailing list