[EMAIL PROTECTED] wrote:
I just had a buddy call me to have me test something on my system that he got
bitten with. Anyone else ever been bitten by this?
TEXT = '2E-29' ;* Expected to be TEXT
IF NUMERIC(TEXT) THEN
PRINT 'IS NUMERIC'
END ELSE
PRINT 'NOT NUMERIC'
END
Scientific Notation...
Off the cuff, (no Universe machine handy):
NUMERICS = "0123456789"
TEXT = '2E-29'
CHECK.TEXT = TEXT
CONVERT NUMERICS TO "" IN CHECK.TEXT
IF (CHECK.TEXT) THEN
CRT "NOT STRICTLY NUMERIC"
END
And as I typed this, I noticed that you'd also have to trim any leading
"-" sign, and account for any decimal point, but hopefully this will
give your friend something to work from.
--
Allen Egerton
aegerton at pobox dot com
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/