Skip to Content
0
Former Member
Oct 28, 2010 at 02:15 PM

calculate position for decimal point

86 Views

Hi experts,

I have 2 fields: value & decimal.

the requirement is that the "value" should have the number of decimal places equal to the value in field "decimal".

eg. if value = 43500 & decimal = 4, then the output should be 4.35,

if value = 1234 & decimal = 2, then output should be 12.34, and so on.

Is there any statement or FM which readily does this kind of conversion?

Regards.