Skip to content
Advertisement

How to convert from a double without a fractional part to a hexaicosadecimal string (base-26)?

I am wondering how do you convert from a double without a fractional part to a hexaicosadecimal string? What are some methods for converting and are there short cuts?

Advertisement

Answer

As far as I understood it is a base 26 conversion to letters only, with a prefix “c”. Not sure on the sign for a negative- number.

One “shortcut” would be to take the standard base 26 conversion. Arguably doing the conversion oneself is just as easy, and would certainly give a better note in homework.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement