Converting Float to String
#1

Hi guys.

I was just wondering how to convert a simple Float to a string.
Yeah, I know floatstr is for string to float, but what about the reverse-way?
I need it for fwrite() =/
Reply
#2

Simple as that.

pawn Code:
new string[ 30 ];
format( string, 30, "%f", Variable);
Reply
#3

Oh damn, i didn't consider that one...
Thanks guys!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)