Rouding up the last 5' digit: Leaner solution than mine?

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

Rouding up the last 5' digit: Leaner solution than mine?

Postby arjfca » 11 Aug 2011

Hello

I want to round up the least significant digit of a price.
EX: 1.42345 = 1.4235

Actualy i do
Value1 = Number * 10 000 1.42345 = 14234.5
Value1 = Ceiling (value1) = 14235
Value1 = Value1 / 10 000 = 1.4235

Is there a leaner solution?

Martin

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Rouding up the last 5' digit: Leaner solution than mine?

Postby Dave Masalov » 11 Aug 2011

Martin,

You can use the following keyword:

Code: Select all

round(number, 4)


Return to “MultiCharts”