|
-
July 13th, 2004, 05:04 PM
#1
Floating point
Hi
I tested an iMac running under OS X 10.3.4 with one GHz processor speed. I used the following:
int main (int argc, const char * argv[]) {
float b = 1;
int index = 0;
while( b > 0 )
{
b = b / 10;
index++;
};
std::cout << "Number of decimal places: " << index << "\n";
return 0;
}
The result was 46 decimal places. My computer can process only 16.
What is the advantege of iMac as far as the number of decimal places is concerned?
Fero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|