You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

round_fixed

round_fixed(number,places)
Returns the given number rounded to the a number of places.
COPY/// round_fixed(number,places)
//
//  Returns the given number rounded to the a number of places.
//
//      number      number to round, real
//      places      decimal places to round to, real
//
/// GMLscripts.com/license
{
    return round(argument0*power(10,argument1))/power(10,argument1);
}

Contributors: IceMetalPunk

GitHub: View · Commits · Blame · Raw