[Include] Unsigned numbers
#6

Thanks, guys.

I updated the include with a new function: unsigned_string(value).
This function returns a string with an unsigned base 10 representation of the number.

Example:
pawn Код:
printf("%d",                 0xFFFFFFFF ); // -1
printf("%s", unsigned_string(0xFFFFFFFF)); // 4294967295
Edit: unsigned_string is now roughly 50 times faster than the previous version!
Reply


Messages In This Thread
Unsigned numbers - by Slice - 16.01.2012, 14:45
Re: Unsigned numbers - by T0pAz - 16.01.2012, 14:48
Re: Unsigned numbers - by steki. - 16.01.2012, 14:50
Re: Unsigned numbers - by SoUrAv - 16.01.2012, 14:51
Re: Unsigned numbers - by Hiddos - 16.01.2012, 14:55
Re: Unsigned numbers - by Slice - 16.01.2012, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)