plugins/include/float.inc
changeset 836 baa0ec2b5ac7
parent 831 1995c0dd5c04
child 845 081ba05c591c
     1.1 --- a/plugins/include/float.inc	Tue May 22 23:00:12 2007 +0000
     1.2 +++ b/plugins/include/float.inc	Tue May 22 23:45:53 2007 +0000
     1.3 @@ -213,6 +213,23 @@
     1.4  native Float:ArcTangent2(Float:x, Float:y);
     1.5  
     1.6  /**
     1.7 + * Different methods of rounding.
     1.8 + */
     1.9 +enum floatround_method
    1.10 +{
    1.11 +	floatround_round = 0,		/**< Standard IEEE rounding */
    1.12 +	floatround_floor,			/**< Next lowest integer value. */
    1.13 +	floatround_ceil,			/**< Next highest integer value. */
    1.14 +	floatround_tozero			/** Closest integer to zero. */
    1.15 +};
    1.16 +
    1.17 +/**
    1.18 + * Backwards compatibility - use RoundToNearest or any of the other rounding natives.
    1.19 + * @deprecated
    1.20 + */
    1.21 +native FloatRound(Float:value, floatround_method:method=floatround_round);
    1.22 +
    1.23 +/**
    1.24   * User defined operators.
    1.25   *
    1.26   */