Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Gort, klaatu nikto barada." -- The Day the Earth Stood Still


devel / comp.lang.mumps / Numeric Interpretation of Strings

SubjectAuthor
* Numeric Interpretation of StringsSidney Reilley
`* Re: Numeric Interpretation of Stringsed de moel
 `* Re: Numeric Interpretation of Stringsed de moel
  `* Re: Numeric Interpretation of Strings4dmonster
   `- Re: Numeric Interpretation of StringsSidney Reilley

1
Numeric Interpretation of Strings

<slk43q$90k$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=217&group=comp.lang.mumps#217

  copy link   Newsgroups: comp.lang.mumps
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sidney.reilley.ii@gmail.com (Sidney Reilley)
Newsgroups: comp.lang.mumps
Subject: Numeric Interpretation of Strings
Date: Sat, 30 Oct 2021 18:49:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <slk43q$90k$1@dont-email.me>
Injection-Date: Sat, 30 Oct 2021 18:49:30 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="74d5ea08122312a32ceaf7e930507ad0";
logging-data="9236"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9z/VyKGqcvpYvq64y6kWy"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:jsz3fjCIhLAxXPMWnR6SHck3shI=
 by: Sidney Reilley - Sat, 30 Oct 2021 18:49 UTC

Using Okane mumps!

don't understand how

+"123.45e4"

becomes 1.2345e+06

The scientific notation needs to be quoted! a numeric operator needs
to be present. Okay so far, but I don't grok how we go from 123.45e4
to 1.2345e+06.

Re: Numeric Interpretation of Strings

<d34fc746-83c7-4496-99db-2ecf4c8bcedfn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=218&group=comp.lang.mumps#218

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ad4:5769:: with SMTP id r9mr20418945qvx.38.1635645131448;
Sat, 30 Oct 2021 18:52:11 -0700 (PDT)
X-Received: by 2002:ac8:5b8c:: with SMTP id a12mr21395545qta.342.1635645131301;
Sat, 30 Oct 2021 18:52:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sat, 30 Oct 2021 18:52:11 -0700 (PDT)
In-Reply-To: <slk43q$90k$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=71.174.62.16; posting-account=j7lJmQoAAADTx0Apfk15DZ7D0qlYy4zv
NNTP-Posting-Host: 71.174.62.16
References: <slk43q$90k$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d34fc746-83c7-4496-99db-2ecf4c8bcedfn@googlegroups.com>
Subject: Re: Numeric Interpretation of Strings
From: eddemoel@gmail.com (ed de moel)
Injection-Date: Sun, 31 Oct 2021 01:52:11 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ed de moel - Sun, 31 Oct 2021 01:52 UTC

I would expect +"123.45e4" to return 1234500
The unary + operator should return a canonic number.
(even if it happens to be numerically the same as 1.2345E6...)

Ed

Re: Numeric Interpretation of Strings

<2b64897b-2f94-4762-9ef3-79141a858f69n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=219&group=comp.lang.mumps#219

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:4003:: with SMTP id h3mr16535306qko.277.1635645287424; Sat, 30 Oct 2021 18:54:47 -0700 (PDT)
X-Received: by 2002:a05:620a:2149:: with SMTP id m9mr10814587qkm.398.1635645287308; Sat, 30 Oct 2021 18:54:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sat, 30 Oct 2021 18:54:47 -0700 (PDT)
In-Reply-To: <d34fc746-83c7-4496-99db-2ecf4c8bcedfn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.174.62.16; posting-account=j7lJmQoAAADTx0Apfk15DZ7D0qlYy4zv
NNTP-Posting-Host: 71.174.62.16
References: <slk43q$90k$1@dont-email.me> <d34fc746-83c7-4496-99db-2ecf4c8bcedfn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2b64897b-2f94-4762-9ef3-79141a858f69n@googlegroups.com>
Subject: Re: Numeric Interpretation of Strings
From: eddemoel@gmail.com (ed de moel)
Injection-Date: Sun, 31 Oct 2021 01:54:47 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 3
 by: ed de moel - Sun, 31 Oct 2021 01:54 UTC

Or, actually, it should return 123.45, because (in the standard) lowercase "e" is not recognized as "exponential notation".
But many implementations treat "E" and "e" the same in this context.

Ed

Re: Numeric Interpretation of Strings

<ae839412-6dd8-4756-8400-aab1a511b427n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=220&group=comp.lang.mumps#220

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:622a:56:: with SMTP id y22mr8850843qtw.364.1635703360435;
Sun, 31 Oct 2021 11:02:40 -0700 (PDT)
X-Received: by 2002:ac8:20a:: with SMTP id k10mr25674534qtg.280.1635703360238;
Sun, 31 Oct 2021 11:02:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sun, 31 Oct 2021 11:02:40 -0700 (PDT)
In-Reply-To: <2b64897b-2f94-4762-9ef3-79141a858f69n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=195.211.78.160; posting-account=neZpHAoAAABR74snsVAjiFI6FZWhhTKw
NNTP-Posting-Host: 195.211.78.160
References: <slk43q$90k$1@dont-email.me> <d34fc746-83c7-4496-99db-2ecf4c8bcedfn@googlegroups.com>
<2b64897b-2f94-4762-9ef3-79141a858f69n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ae839412-6dd8-4756-8400-aab1a511b427n@googlegroups.com>
Subject: Re: Numeric Interpretation of Strings
From: 4dmonster@gmail.com (4dmonster)
Injection-Date: Sun, 31 Oct 2021 18:02:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 12
 by: 4dmonster - Sun, 31 Oct 2021 18:02 UTC

I suppose this happens because 1.2345e+06 is normalized representation of 123.45e4 and floating numbers are stored in that way. When you force type conversation it understands you have floating number. If you want canonical integer you should do explicit convert to integer.

воскресенье, 31 октября 2021 г. в 04:54:47 UTC+3, ed de moel:
> Or, actually, it should return 123.45, because (in the standard) lowercase "e" is not recognized as "exponential notation".
> But many implementations treat "E" and "e" the same in this context.
>
> Ed

Re: Numeric Interpretation of Strings

<slmtri$rsd$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=222&group=comp.lang.mumps#222

  copy link   Newsgroups: comp.lang.mumps
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sidney.reilley.ii@gmail.com (Sidney Reilley)
Newsgroups: comp.lang.mumps
Subject: Re: Numeric Interpretation of Strings
Date: Sun, 31 Oct 2021 20:21:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <slmtri$rsd$1@dont-email.me>
References: <slk43q$90k$1@dont-email.me>
<d34fc746-83c7-4496-99db-2ecf4c8bcedfn@googlegroups.com>
<2b64897b-2f94-4762-9ef3-79141a858f69n@googlegroups.com>
<ae839412-6dd8-4756-8400-aab1a511b427n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 31 Oct 2021 20:21:06 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="43dcc9a89e36a8efff2c2a6513d47af0";
logging-data="28557"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JqeqLafNeCJV8NwCTPdzr"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:8XMOzkjj2pZ7RLG50tHp75INbZU=
 by: Sidney Reilley - Sun, 31 Oct 2021 20:21 UTC

On 2021-10-31, 4dmonster <4dmonster@gmail.com> wrote:
> I suppose this happens because 1.2345e+06 is normalized
> representation of 123.45e4 and floating numbers are stored
> in that way. When you force type conversation it understands
> you have floating number. If you want canonical integer you
> should do explicit convert to integer.
>
> воскресенье, 31 октября 2021 г. в 04:54:47 UTC+3, ed de moel:
>> Or, actually, it should return 123.45, because (in the
>> standard) lowercase "e" is not recognized as "exponential
>> notation".
>> But many implementations treat "E" and "e" the same in this
>>context.

It appears that I need a refresher mini-tut about scientific
notation! Thx for all the input.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor