re-added old float rounding native

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40842
This commit is contained in:
Borja Ferrer
2007-05-22 23:45:53 +00:00
parent 4db651b4de
commit f4390609b3
2 changed files with 54 additions and 0 deletions
+17
View File
@@ -212,6 +212,23 @@ native Float:ArcSine(Float:angle);
*/
native Float:ArcTangent2(Float:x, Float:y);
/**
* Different methods of rounding.
*/
enum floatround_method
{
floatround_round = 0, /**< Standard IEEE rounding */
floatround_floor, /**< Next lowest integer value. */
floatround_ceil, /**< Next highest integer value. */
floatround_tozero /** Closest integer to zero. */
};
/**
* Backwards compatibility - use RoundToNearest or any of the other rounding natives.
* @deprecated
*/
native FloatRound(Float:value, floatround_method:method=floatround_round);
/**
* User defined operators.
*