-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
I was doing some standard mathematical calculations and I found empirically that
<cmath>does not publishstd::fpclassify.- There are also no definitions for
FP_NAN,FP_INFINITE,FP_NORMAL,FP_SUBNORMALandFP_ZERO.
There is an implementation of fpclassify in std present in the file, but it is hidden within some compiler switches that I don't understand. It is rather straightforward to implement, if that is the answer here.
If I'm not mistaken, I think we need in namespace std:
int fpclassify( float num );
int fpclassify( double num );
int fpclassify( long double num );And I think we also need the constants FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL and FP_ZERO.
Metadata
Metadata
Assignees
Labels
No labels