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;

Reply via email to