hi all.
I was wondering if we could share a few functions in our code, either voluntarily or somebody asks and somebody else says here's a function.
I didn't want to create a new thread for every function I wanted, or the same for others, so I put this up.
The function I'm looking for, I'm pretty sure cae will be able to answer this one.
I need a hex_to_decimal function.
I, of course, can not use hex_to_string because it returns binary strings, not decimal digits.
Say, e do this.
string thing=number_to_hex_string(1372); //returns 55C.
//I did that calculation before, I don't actually know hexadecimal.
now, I can't exactly do this one.
string thing2=hex_to_string(thing);
i wanted 1372, and I don't get that. Does anybody have like an include or something that will convert hexadecimal to decimal? Prefferably returning a double. And if you make this, keep the following things in mine.
One: Hexadecimal doesn't support subdigits, i.e, 3.14, would come out as 0x03.
Two: I do not believe hexadecimal supports negative numbers.
Or maybe these are bgt limitations.
So, can anybody give me one of those? Also, any functions you need just post here and somebody should return you one!
An anomaly in the matrix. An error in existence. A being who cannot get inside the goddamn box! A.K.A. Me.