Hi,
I am getting numeric values in a column. It contains both kind of numeric values i.e. 123 and 123.45
Now I need to check whether the incoming value is whole value(123) or floating value(123.45).
Could anyone help me how to check the value?
Thanks in Advance
Need to check the number format
Moderators: chulett, rschirm, roy
Need to check the number format
With regards,
Xpert
Xpert
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Index(InLink.TheString, ".", 1) will return 0 if there is no "." and a positive number if there is.
(InLink.TheString Matches "1N0N" : @VM : "1N0N'.'0N") will test for unsigned numeric formats.
(InLink.TheString Matches "1N0N" : @VM : "1N0N'.'0N") will test for unsigned numeric formats.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.