Posted 08 May 2013 - 05:44 AM
I am trying to make a graph api, where I will use the following formula to determine where to draw a pixel for a column:
The output of this should output a rough position, but the problem is that I could get something like "81.98975". Is there a function or anything else I can use to round this down or even up?
number / (scaleFromUserInput / monitorHeight)
The output of this should output a rough position, but the problem is that I could get something like "81.98975". Is there a function or anything else I can use to round this down or even up?