Skip to Content
Former Member
Mar 23, 2011 at 09:06 AM

How to read number of digits in a given decimal number by using abap


Hi ,

How can we read the number of digits present in a decimal number , just before decimal.

For example: I have this number - 200.00

Now I want to read how many digits are present in this number before decimal ( . ) point. so in this case the number of digits are 3( 200). Similarly if we have a number 15.00, in this case number of digits is 2 ( 15 ) before decimal point.

How can i acheive this by using abap.