Login Page - Create Account

Support Board


Date/Time: Mon, 13 May 2024 03:58:23 +0000



Post From: is there any ACSIL function that rounds

[2018-08-12 18:14:07]
WarriorTrader - Posts: 245
The fastest way to round something is to add .5 and only take the integer part of the answer. I will have to look for some code examples but the ides is simple. To round 3.7 just add 3.7 + .5 which gives 4.2 and throw out the .2
to round 3.7 --> 3.7 + .5 = 4.2 = 4

That technique can be used for decimal places also.



--WT
Date Time Of Last Edit: 2018-08-13 05:49:09