Time Function not giving precision

Questions about MultiCharts and user contributed studies.
jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Time Function not giving precision

Postby jl12 » 17 Feb 2008

el_timetodatetime_s(101525) returns .43 it is rounding to 2dp


not

as per help

ELTimeToDateTime_s(101525) will return a value of 0.427372685, corresponding to the specified time of 10:15:25 AM }


i need this function to calculate diferences- is there a work around

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 18 Feb 2008

The function works properly. I assume you simply use "print" statement that has 2 decimals by default. So you can either change this setting (see print command) or use any indicator to see output.

jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Postby jl12 » 18 Feb 2008

Thank you

you are correct, I have changed the print command setting

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 18 Feb 2008

You are welcome!


Return to “MultiCharts”