Question:

Does anyone know the algorithm to convert hex numbers to decimal numbers?

by  |  earlier

0 LIKES UnLike

I need it to finish my program and I'm too lazy to reinvent it.

 Tags:

   Report

3 ANSWERS


  1. function (number to convert)

    num = number to conver mod 16    

        if numer to cnvert - num = o

            result = toChar(num);

        else

            result = function number to convert( (numbertoconver-num)/16 ) + toChar(num);

        return result;

    }



    function toChar(num)

        var foo= "0123456789ABCDEF";

        return foo.charAt(num);


  2. To convert back and forth

    http://www.statman.info/conversions/hexa...

  3. http://en.wikipedia.org/wiki/Hexadecimal

    C

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.