By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,898 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,898 IT Pros & Developers. It's quick & easy.

how 2 calculate exponent , mantissa n range of a floating point numberz

P: 1
hi ppl am new in learning C++ n i hvent got any clue abt the range of floating no'z so can any one help me out? how we find range of floating point no'z?
Sep 30 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,916
#include "float.h"
where you will find the symbols


the range of a float f is

-FLT_MAX <= f <= FLT_MAX

and FLT_MIN is the smallest positive non-zero number that a float can represent.
Sep 30 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.