|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
I just had an interesting thought on this subject: Even though all numbers in base-10 cannot be represented accurately with a finite number of digits in base-2, all numbers in base-2 can be accurately represented accurately with a finite number of digits in base-10.
This is because 1, 1/2, 1/4, 1/8, etc are shown in base-10 as so: 1 0.5 0.25 0.125 0.0625 0.03125 0.015625 0.0078125 0.00390625 etc. You will notice that these numbers (and all that follow them) can be represented accurately in base-10. Therefore, any binary number can be represented accurately in base-10, as all binary numbers are just sums of one or more of these numbers (and/or multiples of 1).
__________________
Jason Doucette / Xona.com™ - Programming Windows Errata Addendum "Discussion is an exchange of knowledge; argument is an exchange of ignorance." |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > float numbers slightly out |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|