Wednesday, December 13, 2006

Missing round func in mel?

I found out today that we’re missing a round function in mel… so sad. My initial workaround was to use ceil:

If (ceil $num - $num) >= .5, then use (ceil $num -1)

Thanks to brad and google power, this was then simplified to:

trunc ($num + .5);

…. But I still would like to just do: round $num; J

0 Comments:

Post a Comment

<< Home