Please Help me for wrong return form NormalizeDouble( ) function

I want check all currency Bid price

NormalizeDouble( MarketInfo(TradePairs[i]+suffix,MODE_BID),MarketInfo(TradePairs[i]+suffix,MODE_DIGITS))

But this code return Wrong bid price For example return result for NZDUSD 0.7273500000000001

You don’t need to use NormalizeDouble() if you’re using MODE_BID, unless you’re doing something strange with the value.

That is the correct result for NormalizeDouble(). It is because of how floating point numbers are stored in binary.


double MyVal=0.1;
Result: 0.10000000000000001

Just control the output when you want to display the number e.g. DoubleToString()