cancel
Showing results for 
Search instead for 
Did you mean: 

Rounding off to a variable value to 4 decimal values in sap script ouput

Former Member
0 Kudos

Hi All,

I have a value getting displayed in sap script output as 235.6789 i want to Round off this variable value to 4 decimal values!

What is the formatting option need to be used & how!

Thanks in advance.

Thanks,

Deep.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All,

Any clues on above issue.

For showing 4 decimals i have used (.4) option in the same for rounding off the value to 4 decimals what need to be done in layout set.

Thanks,

Deep.

Former Member
0 Kudos

Hi,

1.In layout just call that variable, where you need like:

&variable(.4)&.

Just see these:

&symbol(Z)& Omit Leading Zeros

&symbol(S)& Omit Leading Sign

&symbol(<)& Display Leading Sign to the Left

&symbol(>)& Display Leading Sign to the Right

&symbol(C)& Compress Spaces

&symbol(.N)& Display upto N decimal places

&symbol(T)& Omit thousands separator

&symbol(R)& Right justified

&symbol(I)& Suppress output of the initial value

Regards,

If helpful reward with points(Don't forget).

Former Member
0 Kudos

Hi,

&variable(.4)&. will just show 4 decimals it will not round off the value right!

Is there any formatting option to round-off the value.

Thanks,

Deep.

Former Member
0 Kudos

Hi,

No It will round off & then display the 4 decimals.

Regards

Raju Chitale

Answers (0)