on 12-02-2014 6:33 AM
Hi, I have MII 14.0.5.11, I need to validate if a string is a HEX number. I used number function with "0X" as prefix but not working. Can anyone help on this?
Message was edited by: Michael Appleby
Hi,
What you are doing is correct. Are you getting any error when you use the number function?
Regards,
Anushree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have couple of issues,
1. When I assign number("0XFFFF") to a local variable TEST and when display the TEST variable the value is 0.
2. When I pass a invalid HEX number to the number function it is success and not throwing any exception. ex number (0XFFFZ) and the value of TEST in this case in also 0.
Anything wrong?
Thanks
Shyam
Try using a lower case "x" instead of the capital; I tried this and it worked as expected:
number("0xAB12")
I also tested this and received a "0" as the response:
number("0xAZ")
I agree that this should return a value of "NA" which is value of nullnumber or at the very least throw a number conversion exception. Please write this up as a ticket.
Sam
PS: I tested this on my 15.0 SP02 P6 instance of MII
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.