I'm probably missing something, but on the off chance you aren't aware, there is http://phobos.dpldocs.info/std.math.modf.html .
Re: Convert double to long if lossless
Schrom, Brian T via Digitalmars-d-learn Tue, 19 Jan 2021 09:06:13 -0800
- Re: Convert double to long if... Per Nordlöw via Digitalmars-d-learn
- Re: Convert double to lon... drug via Digitalmars-d-learn
- Re: Convert double to... drug via Digitalmars-d-learn
- Re: Convert double to... Ali Çehreli via Digitalmars-d-learn
- Re: Convert doubl... drug via Digitalmars-d-learn
- Re: Convert ... Ali Çehreli via Digitalmars-d-learn
- Re: Conv... Per Nordlöw via Digitalmars-d-learn
- Re: Convert ... Per Nordlöw via Digitalmars-d-learn
- Re: Conv... Ali Çehreli via Digitalmars-d-learn
- Re: Conv... drug via Digitalmars-d-learn
- Re: Convert doubl... Schrom, Brian T via Digitalmars-d-learn
- Re: Convert double to long if loss... kdevel via Digitalmars-d-learn
- Re: Convert double to long if... Per Nordlöw via Digitalmars-d-learn