Max float is defied as:
math.h
#define MAXFLOAT 0x1.fffffep+127f
I’m a little sad I never noticed this before. What’s this actually say? I would have expected something like this:
#define MAXFLOAT 0xFFFFFFFF-1
Would that even work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
0x1.fffffep+127is (roughly)1.99999999999999999999998 times 2^127. It’s a floating point number, with an exponent, in hexadecimal.
0x= hex notation1= integer part of the number.fffffe= fractional part of the numberp+127= scientific notation for “times two to the 127th power”