When is a string not a string

27 views
Skip to first unread message

Shane Dewitt

unread,
Aug 13, 2026, 11:49:03 AM (3 days ago) Aug 13
to Everything MUMPS
VEHU>S X="12E1234567890"

VEHU>I X W 1
%YDB-E-NUMOFLOW, Numeric overflow

VEHU>I +X W 1
%YDB-E-NUMOFLOW, Numeric overflow

VEHU>S X="12e1234567890"

VEHU>I X W 1
1
VEHU>I +X W 1
1
VEHU>

Sam Habiel

unread,
Aug 13, 2026, 11:53:37 AM (3 days ago) Aug 13
to Shane Dewitt, Everything MUMPS
See https://groups.google.com/g/comp.lang.mumps/c/nTAC4300T1E/m/OVhC3BpoCAAJ for the answer. Use follows (]]) against $char(0) or space (" ").

--
You received this message because you are subscribed to the Google Groups "Everything MUMPS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to everythingmum...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/everythingmumps/e3ef3b61-697d-41e8-b1b0-e6cd56805682n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stefano Lalli

unread,
Aug 13, 2026, 12:04:51 PM (3 days ago) Aug 13
to Sam Habiel, Shane Dewitt, Everything MUMPS
isNumber(str)
quit $zlength(str)&($zchar(0)]]str)
;
;

Op do 13 aug 2026 om 17:53 schreef Sam Habiel <sam.h...@gmail.com>:

Stefano Lalli

unread,
Aug 13, 2026, 12:08:49 PM (3 days ago) Aug 13
to Sam Habiel, Shane Dewitt, Everything MUMPS
but I believe you are concerned about the exponent uppercase E returning NUMOVERFLOW... 

Sorry, but I have no idea about it...

Stef


Op do 13 aug 2026 om 18:04 schreef Stefano Lalli <stefano...@gmail.com>:

Shane Dewitt

unread,
Aug 13, 2026, 12:37:34 PM (3 days ago) Aug 13
to Everything MUMPS
Nikolay fixed the code. I think the NOT Equal keeps X as a string so it does not overflow.

VEHU>S X="12E1234567890"

VEHU>I X'="" W 1
1

Stefano Lalli

unread,
Aug 13, 2026, 12:53:44 PM (3 days ago) Aug 13
to Shane Dewitt, Everything MUMPS
if $ztranslate(x,"E","e") bla bla bla

just an idea...

Op do 13 aug 2026 om 18:37 schreef 'Shane Dewitt' via Everything MUMPS <everyth...@googlegroups.com>:
--
You received this message because you are subscribed to the Google Groups "Everything MUMPS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to everythingmum...@googlegroups.com.

Shane Dewitt

unread,
Aug 13, 2026, 2:03:07 PM (3 days ago) Aug 13
to Everything MUMPS
I really don't want to change X or the code that checks X. I was hoping there was a flag or setting I could set that would not coerce strings with E in them to a scientific notation.

Thanks.

Reply all
Reply to author
Forward
0 new messages