round_fixed
/*
** 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);
}
** 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);
}
[Please Login]
Projects: 8
Contributor: IceMetalPunk
comments powered by Disqus

Related: