Actually, you can use the %DECH built-in function. You have to specify the length and the number of decimal places for the field, though. But you can "soft-code" it, so if the field attributes change, you don't have to remember to change the statement:
Code:
NumField = %DECH(a / b : %LEN(NumField): %DECPOS(NumField));
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.