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

1 Comments:

Blogger bclark said...

yes.. long live google power, I charge 1$ per search people, let me find what you can't:)

9:30 PM PST  

Post a Comment

Links to this post:

Create a Link

<< Home