Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you convert numbers between different bases in
JavaScript?

Answer Posted / heena

Use the parseInt() function, that takes a string as the
first parameter, and the base as a second parameter. So to
convert hexadecimal 3F to decimal, use parseInt ("3F", 16)

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a Javascript code redirect the user to a different page?

958


Is function a data type in javascript?

1019


What is jscript used for?

928


What is callback?

1176


How can a page be forced to load another page in javascript?

1104


Is javascript faster than asp script?

1050


What does a typeof operator do?

1012


Is javascript a security risk?

983


What's the purpose of javascript?

983


How much do javascript programmers make?

900


What are the different types of errors available in javascript?

995


How can we detect os of the client machine using javascript?

1090


What is the difference between java & javascript?

1074


What are the two basic groups of dataypes in javascript?

1056


What is javascript used for on iphone?

915