471,047 Members | 1,255 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,047 software developers and data experts.

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

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?
regardz
areej
Sep 30 '06 #1
1 7324
Banfa
9,065 Expert Mod 8TB
#include "float.h"
where you will find the symbols

FLT_MAX
FLT_MIN

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.

Similar topics

687 posts views Thread by cody | last post: by
3 posts views Thread by Mark L Pappin | last post: by
7 posts views Thread by Vinoth | last post: by
7 posts views Thread by thisismyidentity | last post: by
23 posts views Thread by ultimatewarrior | last post: by
14 posts views Thread by Peter Sprenger | last post: by
15 posts views Thread by Mukesh_Singh_Nick | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.