Results 1 to 2 of 2

Thread: Provide the Command or Option

  1. #1
    Contributing Member
    Join Date
    May 2006
    Answers
    71

    Provide the Command or Option

    Is it possible to convert numbers between different bases in JavaScript? If so what is the command used for doing this.


  2. #2
    Contributing Member
    Join Date
    Jul 2006
    Answers
    56

    Re: Provide the Command or Option

    Yes it is possible to convert numbers between different bases in JavaScript.This can be done by using 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);


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact