say I have a float of 11.749. I have set persicon set to 2 so it would output as 11.74 but I need it to round that number up. I need 11.75 not 11.74 how is this done?
You should try a little function that will test the bit pattern of the 3rd digit on the right of the decimal place. From there you can decide if you should round up or down..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.