Float to hex
#1

Hi guys,

Is there function posted in this forum, that converts float to hex? There is web, but I need that in pawn . I searched, but I didn't find.

Thanks!

EDIT: I mean not hex, but alpha in color codes(0x000000FF, bolded is alpha)
Reply
#2

I have never seen one, but i can't think of a reason it would be useful. May i ask why you need this function?
Reply
#3

Thanks for post.
Hm, I have a variable, the I divide 255 by it. Then I'm getting float value(e.x 255 / 300 = 0.85). That's opacity. I need to convert it to alpha(0x000000FF, bolded is alpha)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)