Rounding in PL / EL  [SOLVED]

Questions about MultiCharts and user contributed studies.
TO_Trader
Posts: 35
Joined: 31 Oct 2011
Has thanked: 9 times
Been thanked: 3 times

Rounding in PL / EL

Postby TO_Trader » 24 Nov 2012

Hello,

I was hoping someone would be kind enough to help show me how to round a value to the lowest 1, 10, 100, or 1000, in Easy Language.

For example, value if Value1 = 2357.67, then:

The rounding to the lowest 1 would be 2357, to the lowest 10 would be 2350, to the lowest 100 would be 2300 and lowest 1000 would be 2000.

Thanks in advance!

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Rounding in PL / EL  [SOLVED]

Postby TJ » 24 Nov 2012

Hello,

I was hoping someone would be kind enough to help show me how to round a value to the lowest 1, 10, 100, or 1000, in Easy Language.

For example, value if Value1 = 2357.67, then:

The rounding to the lowest 1 would be 2357, to the lowest 10 would be 2350, to the lowest 100 would be 2300 and lowest 1000 would be 2000.

Thanks in advance!
Look up

IntPortion


for lowest 10,
simply divide the number by 10, do the IntPortion, then multiply by 10 again.

TO_Trader
Posts: 35
Joined: 31 Oct 2011
Has thanked: 9 times
Been thanked: 3 times

Re: Rounding in PL / EL

Postby TO_Trader » 24 Nov 2012

Got it. Many thanks TJ!


Return to “MultiCharts”