Money type

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Jan 2 17:59:18 UTC 2020


On Thursday, 2 January 2020 at 17:57:19 UTC, Ola Fosheim Grøstad 
wrote:
> Oh, I am not arguing that banking institutions should use base 
> 2 floating point. 64 bit floating point base 2 can only 
> represent 90 trillion cents with exact precision,

Typo: 90 trillion USD, so 9000 trillion cents.

I.e. the range is -2^53 to 2^53, so basically a 54 bit signed 
integer with exact representation.




More information about the Digitalmars-d mailing list