08.08.2009, 09:17
If I use strval, I only get a value without decimals, but I need a value with 2 decimals behind the comma. How can i make that?
Originally Posted by thuron
but doesnt floatstr make a float into a string?? and what do you mean by the float tag?
|
new Float:var, var2, string[10];
format(string,10,"1.34534");
var = floatstr(string);
var2 = floatstr(string); //var2 did not have the Float tag that tells the compiler that it will contain a floating point number. This is line 5.
/*
compiler output:
C:\blahblahblah(5) : warning 213: tag mismatch
*/