Rounding Down

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1273
Joined: 23 Nov 2010
Has thanked: 721 times
Been thanked: 222 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: 444
Joined: 06 Feb 2006
Has thanked: 36 times
Been thanked: 280 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;
These users thanked the author SP for the post (total 3):
arjfcaTJStan Bokov


Return to “MultiCharts”