re-added old float rounding native
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40842
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user