When will you implement cent and ucent?

Era Scarecrow rtcvb32 at yahoo.com
Sat Mar 26 06:53:32 UTC 2022


On Saturday, 26 March 2022 at 04:02:18 UTC, Murilo wrote:
> I would perform calculation with astronomical numbers and 
> atomic precision.

  If you aren't sure what size of numbers you need, BigInt/BigNum 
would be better.

  If you need fractions, might be more interested in using GMP, as 
it will give you floating precision you want.

  https://gmplib.org/

  float/double/real (32/64/80) allow a very large range of rough 
values within ranges and are built in with the FPU.

  If you want a fixed int-type, then int/long/cent or others would 
be practical.

  So question, what doesn't BigInt do that you need cent/ucent for?


More information about the Digitalmars-d mailing list