Re:A calculator that only shows the answer after you give a ...
by jeffcutsinger on Tuesday April 17, 2012 @04:15PM
(#3854758)
> Pi, for example, cannot be written as a fraction.
Pi cannot be written as a decimal either.
Decimals _are_ a subset of the rationals. Any rational whose denominator has a prime factor other than 2 or 5 cannot be written using decimals.
Re:A calculator that only shows the answer after you give a ...
by derleth on Wednesday April 18, 2012 @12:31AM
(#3856496)
I don't think we're agreeing on the basic definitions, and until we do it's pointless to continue.
Re:A calculator that only shows the answer after you give a ...
by VMG on Wednesday April 18, 2012 @11:07AM
(#3858295)
Under what definition of "decimal" is Pi a decimal number?
Re:A calculator that only shows the answer after you give a ...
by derleth on Wednesday April 18, 2012 @02:39PM
(#3859535)
When you use it as a very informal synonym for 'real', or as a short form for 'infinite decimal'. (This is even more understandable when you realize every decimal is an infinite decimal, and our convention of truncating an infinite string of zeroes has little mathematical reality.)
If you're talking about general decimal numbers, this is provably false. Pi, for example, cannot be written as a fraction.
If you're talking about floating-point numbers on a piece of finite hardware, they can all be written as fractions, and, depending on whether you use multiple-precision math, you might be able to represent all the fractions your computer can work with as decimal numbers.