by **Humanetico** » Wed Sep 21, 2011 1:26 pm

Thank you, JRL. Your Delphi Basics link was very useful. In this link I found too a good explanation about Round function:

===

The Round function rounds a floating point Number to an Integer value.

The rounding uses Bankers rules, where an exact half value causes a rounding to an even number:

12.4 rounds to 12

12.5 rounds to 12 // Round down to even

12.6 rounds to 13

13.4 rounds to 13

13.5 rounds to 14 // Round up to even

13.6 rounds to 14

===

I made a test and Macroscheduler use Bankers rules too in your Round function, although in Macroscheduler help is said: " ... If X is exactly halfway between two whole numbers, the result is the number with the greatest absolute magnitude.".

Thanks.