Is there a good lib out there to handle large integer of know size ?

rumbu via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 9 03:31:00 PST 2016


Here is what I've done as a side project for a decimal data type:

https://github.com/rumbu13/fixed/blob/master/src/fixedtest/fixed.d

- signed and unsigned fixed width types;
- all current operators supported (even signed shift or power);
- optimized division and multiplication;
- formatting with specifiers;
- conversion (currently 16 and 10-based numbers)
- casting;
- endianess aware;
- minimal dependendencies; (std.traits, std.format - needed for 
FormatSpec).

Working on:
- floating point conversion optimization;
- random base conversion;
- rangify current strings conversions;
- some bugs for the signed data type;



More information about the Digitalmars-d mailing list