For reasons too convoluted to explain, I need to interpret numbers written in scientfic notation and I need to do that in basic. I'd need to extract the sign, the base, the exponent sign and the exponent.
To somewhat duplicate the functionality of QS, I initially thought of using pattern matching. The main (undocumented) problem is that the pattern matching of QS is greedy and there's no mention of this in the IBM docs.
I know this is a long shot, but is there a magic way of changing the pattern matching in basic from greedy to non greedy?
Although the mask below isn't correct, it illustrates my point better than the correct one: the 0x gobbles up as much as it can to make it usefull.
Code: Select all
value: 1.234e10 mask:1N0x0N1x0N returns 4 fields: 1 | .234e1 || 2 (third field is empty).
I'd expect it to return 5 fields: 1 | . | 234 | e | 12