|
Calculator for Converting a Long Number From One Base to Another
Take this input number:
Convert From Base:
Convert To Base:
The software will remove all spaces from the text box. Note: This web page now supports number bases up to 62. Bases from 11 to 36 use case-insensitive letters A thru Z for digits greater than 9. Bases from 37 to 62 use uppercase letters for digits from 10 to 35 and lowercase letters for digits from 36 to 61. A negative number should be identified by one hyphen in front of the number. Maximum level of accuracy varies from a low of about 300 digits for base 62 to about 1900 digits for base 2. Integers will either be converted accurately, or an error message will be returned. If a fraction (designated by a period in the proper position) is entered, significant round-off error can occur for numbers with total digits outside of the supported range. If you want to convert a very long number which has both a long integer part and a long fractional part, I suggest you do so in two steps: once for the integer part and once for the fractional part.
This page is dedicated to all software engineers who cannot fathom the concept of hexadecimal fractions, binary fractions, or octal fractions.
For those wishing to automate queries to this page, use the following format to return the value of "x" converted from base "basein" to base "baseout" where x equals 123.456 and basein equals 10 and baseout equals 8 (for example):
http://www.markknowsnothing.com/cgi-bin/baseconv.cgi?x=123.456&basein=10&baseout=8
Only one such request will be honored in any two-minute period.
|