On 23/01/2021 22:54, Martin Gregorie wrote:
>> Money should use Fixed type.
>> <https://en.wikipedia.org/wiki/Fixed-
> point_arithmetic#Computer_language_implementations>
>
> Depends: Thats OK for a single currency system, but if you need to handle
> multi-currency, then you need at least three variables to describe a
> financial amount:
>
For Financial derivative risk systems, it is still almost exclusively
float(double) representation for money. The exponential function is
frequently used in calculations and it works with doubles. Hence the
added complexity of converting between doubles and decimals far
outweighs any benefit.
BTW thank you for the awk idea the other day. If I whinge on about an
idea for days, it means I like it. I'm a bit of a sperg when it comes to
social graces.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|