cancel
Showing results for 
Search instead for 
Did you mean: 

how to trim decimal values in a string?

former_member720137
Active Participant
0 Kudos

Hi

How do i trim decimal value in a string..

suppose i have 1.00, i want it to be displayed as 1

Is there any Round off functionality in WD ABAP?

Regards,

Puneet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

why don't you use split over your string before bind it with context. Split it at decimal.

Regards

Saurabh Garg

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

Try using the mathematical function abs().

ABS( VAR1 ). Which will return the numeric value only.

Thanks

Yogesh

former_member720137
Active Participant
0 Kudos

Hi Yogesh

Can u give me some example to use abs() function..

thanks