View Single Post
Old 6th October 2015, 09:22   #56  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
Quote:
Originally Posted by feisty2 View Post
and yet you can do decimal calculations on computers
Quote:
Originally Posted by feisty2 View Post
computers are just like those little kids, they do whatever you tell them to
like, a 6 yrs old kid is calculating the area of a 1cm radius circle, and he's gonna ask like, "I will need Pi, what am I going to do about it?"
you can either tell him, Pi is approximately 3.14, and you just make it 3.14,
and he will tell you the area is 3.14 cm^2, which is imprecise, cuz you told him to do the wrong stuff
or you tell him, Pi is a constant number just like 1,2,3,4.... you can just keep it Pi,
and he will tell you the area is Pi cm^2, which is precise and correct
I think you're asking user level calculation. There are high-end programs that can do such stuffs. Heck, even calculators can do that.
In machine level calculations it won't work that way.

Lets say for example in 8 bit unsigned float numbers
4 is 0100.0000, 3 is 0011.0000
In mathematics decimal Pi is 3.14159265359...
Then how much is Pi? It will be something like 0011.0010.
How much is it in decimal? 3.125.

Lets imagine you have converted Pi into something like 1. Then how much is decimal 4?
It will be RATIONAL number bit higher than 1, since memory isn't limitless.
Exactly same as computer we work today.

Memory has limit. Real calculation is limited by it.
Real calculation means calculation going in machine language.

It doesn't know and can't learn any other languages.
WE translate it into language that human can understand.

Last edited by bxyhxyh; 6th October 2015 at 09:30.
bxyhxyh is offline   Reply With Quote