Page 1 of 1

Val in Natural

PostPosted: Sun Nov 24, 2013 5:18 pm
by diptisaini1
I need some information about "VAL" use in Natural. As far as I know it will fetch the numeric value from a alphanumeric variable as mentioned below :-

Reset #a (A30) init <'1A'>
Reset #B (N2)
#B := VAL(#A)
Display #B
The output will be #B = 1.

Now here my doubt is if #a contain no numeric data as mention below :

Reset #a (A30) init <'AB'>
Reset #B (N2)
#B := VAL(#A)
Display #B

What will be the value of #B ?

Thanks in Advance!

Re: Val in Natural

PostPosted: Mon Nov 25, 2013 10:28 pm
by dick scherrer
Hello,

What happens when you run this?

We do not have adabas/natural so i can't run a test here.