Re: max double

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 16 Dec 2006, Les wrote:

On Fri, 2006-12-15 at 19:44 -0500, Mike - EMAIL IGNORED wrote:
How do I find the max double on my FC4?
Thanks,
Mike.


If you are discussing the size of the double precision number, you can
look in the Math.h.  The exact number will depend on the encoding and

These values are in float.h, not math.h.

that is separate from the generic language specification.  Most PC's
rely on straight binary encoding, and so would have a range of -2e48 to
(2e48-1) with a characteristic in binary of +32767 to -3768.  The
remaining bit sets the sign for the characteristic.

Hmm. If the values in float.h are to be believed, doubles appear to have 53-bit mantissas and exponents ranging from -1021 to 1024. Long doubles have 64-bit mantissas and exponents ranging from -16381 to 16384. Each representation also includes a sign bit for the mantissa.

Most PCs rely on IEEE-754 representation for floats. I think the remaining exponent bit patterns indicate IEEE-754 states like NaN, INFINITY, DENORM, etc. See http://en.wikipedia.org/wiki/IEEE_754 for an intro to the gory details.




Regards,
Les H




--
		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux