round_fixed

Downloadround_fixed(number,places)   Returns the given number rounded to the given number of places.
/*
**  Usage:
**      round_fixed(number,places)
**
**  Arguments:
**      number      number to round
**      places      decimal places to round to, integer
**
**  Returns
**      the given number rounded to the given number of places
**
**  GMLscripts.com
*/

{
    return round(argument0*power(10,argument1))/power(10,argument1);
}

Click if you've used this script[Please Login]
Projects: 8

 Contributor: IceMetalPunk


comments powered by Disqus