ROUNDING OFF DIGITS

 

Friends,

when we use NormalizeDouble function with 4 digits, I want to know whether the price say 1.55675 will be rounded to 1.5568 or 1.5567 which is correct? if the price is say 1.55453 then will it be rounded to 1.5545 which means last digit 5 and above will be rounded or not ?

 
sunilkumarks46:

Friends,

when we use NormalizeDouble function with 4 digits, I want to know whether the price say 1.55675 will be rounded to 1.5568 or 1.5567 which is correct? if the price is say 1.55453 then will it be rounded to 1.5545 which means last digit 5 and above will be rounded or not ?

Hi sunilkumarks46

Use this http://www.google.com/search?q=normalizedouble%20site:www.mql4.com and you'll find this https://www.mql5.com/en/forum/139224 and please read the links that WHRoeder gave over there.

:D

Reason: