Thread: Price
View Single Post
  #3 (permalink)  
Old 06-22-2006, 10:46 PM
EACAN EACAN is offline
Senior Member
 
Join Date: Jun 2006
Posts: 313
EACAN is on a distinguished road
Quote:
Originally Posted by lowphat
I think you can use NormalizeDouble

double var1=0.123456789;
Print(NormalizeDouble(var1,4));
// output: 0.1234
lowphat many thanks for the suggestion but i think since the ea could run on any currency putting something hardcoded wont work i think i try to use your suggestion for eur/usd now untill i find someother solution.

regards.
Reply With Quote