logo Number Bases
Ref.Library
 
Beds
Bolts
Chemistry
Clothes
Conversion
Electricial
First Aid
Food/Drink
Frequencies
Geography
Geology
History
Mathematics
Music
Nautical
Numerics
Paper
Physics
Signs
Weather
Websites
 
Contact Site
Contact Site
DigitalDan
My Other Sites
Hit = 50

Number Tips Number Squares Prime Numbers Pythagoras Maths Series Special Numbers Factorals Roman Numerals Number Bases

Convert From Base
16
Convert To Base
10
Number 
Page needs JavaScript




Result
Page needs JavaScript

Notes
Tiny rounding errors can occur when converting non-integer numbers from one base to another. These are too amall to affect the accuracy of most calculations and can occur in other mathimatical functions e.g.
( 1 ÷ 3 ) × 3 = 1
but most calculators will offer an answer similar to
0.99999
 
If you are trying code your own number-base conversion program, your browser may allow you to view the source code of this page
 
I have not locked or obtusified the JavaScript code used by this page and you are welcome to use your browsers view source feature. The key functions are ConvertFromBase() and ConvertToBase(). JavaScript has an unusual feature - it automatically converts text strings that only contains numbers into a base_10 numbers. This behaviour is not ideal when using other bases. The code adds a "#" to some strings to prevent automatic conversion. The additional "#" logic will not be required if you are translating to many of the other computer languages.
DigitalDan.co.uk