Rounding Down

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Rounding Down

Postby arjfca » 01 Jun 2011

Hello
I don't see a function to round down a value. I want to round down the last 5' digit if it is greater than 0.00001

1.43686 to be 1.4368
1.43685 to be 1.4368
1.43681 to be 1.4368
1.43680 to be 1.4368
1.43679 to be 1.4367

Any help appreciated
Martin

SP
Posts: 465
Joined: 06 Feb 2006
Has thanked: 36 times
Been thanked: 286 times

Re: Rounding Down

Postby SP » 01 Jun 2011

Not sure if it is what you search, but this rounds down:

input: price (1.43688);
value2 = (IntPortion (price *10000))/10000;


Return to “MultiCharts”