Added float_to_str and str_to_float natives

This commit is contained in:
Pavol Marko 2005-09-06 16:34:17 +00:00
parent f2527ecc86
commit bece1e6d0c

View File

@ -40,6 +40,12 @@ native num_to_str(num,string[],len);
/* Returns converted string to number. */ /* Returns converted string to number. */
native str_to_num(const string[]); native str_to_num(const string[]);
/* Converts float to string. */
native float_to_str(Float:fl, string[], len);
/* Parses a float. */
native Float:str_to_float(const string[]);
/* Checks if two strings equal. If len var is set /* Checks if two strings equal. If len var is set
* then there are only c chars comapred. */ * then there are only c chars comapred. */
native equal(const a[],const b[],c=0); native equal(const a[],const b[],c=0);