I am writing a number of variables to file with:
WRITE# hFile2, Date, Time, OpenPrice, HighPrice, LowPrice, ClosePrice
In the file I get varying lengths of decmal places no matter what I do (Rounding etc) ie:
991210,952,1431.5,1432.5,1430.5,1432.5
991210,954,1432.30004882812,1432.30004882812,1431.30004882812,1431.30004882812
991210,956,1431.09997558594,1431.09997558594,1429.19995117188,1429.5
991210,958,1429.69995117188,1432,1429.5,1431.80004882812
991210,1000,1431.69995117188,1433,1431,1433
991210,1002,1432.5,1433,1432,1432.5
How can get the number of decimal places I want (2)?
------------------
Kind Regards
Mike
WRITE# hFile2, Date, Time, OpenPrice, HighPrice, LowPrice, ClosePrice
In the file I get varying lengths of decmal places no matter what I do (Rounding etc) ie:
991210,952,1431.5,1432.5,1430.5,1432.5
991210,954,1432.30004882812,1432.30004882812,1431.30004882812,1431.30004882812
991210,956,1431.09997558594,1431.09997558594,1429.19995117188,1429.5
991210,958,1429.69995117188,1432,1429.5,1431.80004882812
991210,1000,1431.69995117188,1433,1431,1433
991210,1002,1432.5,1433,1432,1432.5
How can get the number of decimal places I want (2)?
------------------
Kind Regards
Mike
Comment