On Thursday, 3 April 2014 at 20:33:51 UTC, anonymous wrote:
On Thursday, 3 April 2014 at 20:13:35 UTC, Bill Buckels wrote:
The sfloat24 data type is half way between a float and a
double in storage size.
Wait. 24 bits would be halfway between half (16 bits) and single
precision (32 b its).
Could save on byte aligned storage depending on implementation.
If stored in 3 bytes.
Floats overflow even doing a hue calculation. sfloat24 is very
precise.
Again depending on implementation, could be faster than doubles.
But the precision seems to be the advantage.
Give the papers a read.
Does anyone do embedded systems or high precision engineering in
D?
Bill