smaller float

nobody_ spam at spam.spam
Mon Aug 21 03:38:50 PDT 2006


I only need something like two decimal precision on only small numbers, so I 
use:

cast(double) short / 100.0

I don't want to use floats as they use too much memory (talking about a 
20000 big array).
Why are there no 16bit halfs (as opposed to doubles :)? 





More information about the Digitalmars-d-learn mailing list