Re: Interesting math
- From: Purl Gurl <purlgurl@xxxxxxxxxxxx>
- Date: Wed, 11 Jul 2007 05:37:08 -0700
blmblm wrote:
Purl Gurl wrote:blmblm wrote:
What is a "C Float Number"? The criterion seems to
have something to do with number of significant figures.
What's the point?
A C Float Number must have six or more significant digits
after a decimal point. Six or more, no exceptions. Research
and read about C Float Numbers and programming in C language.
This has to do with syntax and declarations, actually more to
do with memory allotment for variable declarations.
Nonsense. I'm reasonably fluent in C, and I have never heard of
this restriction, nor can I imagine what (1) the number of digits
in the text representation of the number in program source code
has to do with (2) memory allotment.
Nonsense?
----
Floating point number represents a real number with 6 digits precision.
Floating point numbers are denoted by the keyword float. When the accuracy
of the floating point number is insufficient, we can use the double to
define the number. The double is same as float but with longer precision.
To extend the precision further we can use long double which consumes 80
bits of memory space.
http://www.exforsys.com/tutorials/c-language/c-programming-language-data-types.html
----
Floating point Types
float Single precision floating point number typical size...Single precision
equates to about 6 digits of precision and double is about 15 digits of precision.
...main reason to use float is to save memory if many numbers need to be stored.
http://www.mycplus.com/tutorial.asp?TID=304
----
FLOAT:
Macintosh Metrowerks CW (Default) - 6 digits
Linux on a PC - 6 digits
IBM PC Windows XP and Windows NT - 6 digits
ANSI C Minimum - 6 digits
http://www.samspublishing.com/articles/article.asp?p=350580&seqNum=4&rl=1
----
Floating Point Numbers
Another commonly used format specification follows the form %14.6f
(the 14 and 6 could be replaced by any numbers). This specifies that
the number should be printed with exactly 6 digits after the decimal
point, and should occupy at least 14 characters in total; padding
consists of spaces added to the left.
http://rabbit.eng.miami.edu/info/functions/stdio.html
----
http://sig.biostr.washington.edu/share/skandha4/html/slisp_192.html
http://en.wikipedia.org/wiki/IEEE_754
http://en.wikipedia.org/wiki/Floating_point
--
Purl Gurl
--
So many are stumped by what slips right off the top of my mind
like a man's bad fitting hairpiece.
.
- Follow-Ups:
- Re: Interesting math
- From: blmblm
- Re: Interesting math
- From: Evan Kirshenbaum
- Re: Interesting math
- References:
- Interesting math
- From: Skitt
- Re: Interesting math
- From: Purl Gurl
- Re: Interesting math
- From: blmblm
- Re: Interesting math
- From: Purl Gurl
- Re: Interesting math
- From: blmblm
- Interesting math
- Prev by Date: Re: Cherries
- Next by Date: Re: Singing accents
- Previous by thread: Re: Interesting math
- Next by thread: Re: Interesting math
- Index(es):
Relevant Pages
|