|1801 day(s) ago||#209|
Date: 2015-09-03 20:22:20
How to validate whether Number contains DecimalsWe could use BSFN B0474N1 - Get Decimal Position. If return value is not equal to zero, that means, you have a decimal in the value. But this returns non zero value even though the number contains zero in decimal place e.g. 5.00.
mod() function could be used to check decimals in such case, sample code could be as below -
VA evt_mn = mod([FC mnFloat],1)
If VA evt_mn is equal to Zero
FC isWholeNum = "1"
FC isWholeNum = "0"
However standard way should be to use DD item which has data type to store whole numbers only (no value for display decimals).
|Disclaimer:||Most of the posts in this blog cater solutions/suggestions/workaround to issues for specific tools release or JDE E1 version and are just information only. Please be carefule while applying it in your environment. JDEthread will not be responsible for any data loss or spec corruption (if any).|
Copyright © 2010 - 2020 JDEthread.in