Dear all,
I have to problems when integrating our legacy system to SAP (Unit of measure conversion factors):

Find out number of decimals : If I get a field containing a number with decimals I need to find out how many decimals I have to multiply this with 10; 100; 1000 … As result I need a number without decimals.

This is related to the first issue. If I get a number with more than 5 digits I have to divde throut 10,100, 1000,… to get a number with max five digits in front of the comma/point.
I think the loop for multiplying or dividing is something I know how to realize but I did not find any service to extract number of decimals and/or total length of numbers