sfloat24 Floating Point DataType - Request for Comments
Bill Buckels
bbuckels at mts.net
Thu Apr 3 17:21:09 PDT 2014
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
More information about the Digitalmars-d
mailing list