| 
Looperman.com 
- Free Samples, Loops, Tutorials and Pro Audio Resources
audionews

Fresh Forum Posts

Rounding a numberPopular

Bookmark This Page:  Delicious Furl it! Spurl digg Blinkbits BlinkList blogmarks co.mments connotea De.lirio.us digg Fark feedmelinks LinkaGoGo Ma.gnolia Netvouz NewsVine RawSugar Reddit Shadows Simpy Smarking TailRank Wists YahooMyWeb
Suppose you have a floating point number, for example the output of a mouse area, and you want to round this number to the lower integer bound. One way to do this is to Modulo/Divide the number by 1. Input -> Modulo.A Modulo.Div -> RoundedNumber 1 -> Modulo.B It is often useful to add a StepFilter on the output if you only want to trigger on changing values. In Core, you can round a number by building a macro with a float input and an integer output. If you want to round to the upper number, you can add 1 first. If you want to round to the upper number for fractional values bigger than 0.5, add 0.5 first.
Average Visitor Rating: 0.00 (Out of 5)
Number of ratings: 0

Select your rating
Excellent
Good
Average
Fair
Poor
Tutorials RSS Feeds : RSS 0.91 RSS 1.0 RSS 2.0 ATOM 0.3 OPML
Subscribe with Bloglines
Add To Google
Add To My AOL
Add To netvibes
Subscribe in NewsGator Online
Add To Pageflakes
Subscribe in Rojo
Add To MyYahoo