Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue May 17 13:50:06 PDT 2016


On 5/16/2016 7:47 AM, Max Samukha wrote:
> On Monday, 16 May 2016 at 14:21:34 UTC, Ola Fosheim Grøstad wrote:
>
>> C++17 is getting hex literals for floating point for a reason: accurate bit
>> level representation.
>
> D has had hex FP literals for ages.


Since the first version, if I recall correctly. Of course, C++ had the idea first!

(Actually, the idea came from the NCEG (Numerical C Extensions Group) work in 
the early 90's, which was largely abandoned. C++ has been very slow to adapt to 
the needs of numerics programmers.)


More information about the Digitalmars-d mailing list