From bece1e6d0c0c7b6846def65df55ffdc40ae80ee9 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Tue, 6 Sep 2005 16:34:17 +0000 Subject: [PATCH] Added float_to_str and str_to_float natives --- plugins/include/string.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/include/string.inc b/plugins/include/string.inc index 54c56e78..feacf0df 100755 --- a/plugins/include/string.inc +++ b/plugins/include/string.inc @@ -40,6 +40,12 @@ native num_to_str(num,string[],len); /* Returns converted string to number. */ 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 * then there are only c chars comapred. */ native equal(const a[],const b[],c=0);