I have a PF in a rpgle program with a field having values 1001.123, 1001.234, 1001.561 and so on. I need to capture the number after the decimal position for doing some calculations. So I need to fetch 123 from 1001.123 , get 234 from 1001.234 and so on.
Can some one tell me how to achieve this in RPGLE?
Get the whole number using %dec with 0 decimal and substract it from your var:
your_var - %dec(your_var : 0 )