RE: Decimal Arith in DCL was(RE: Floating point arithmetic support in DCL)

From: Tom Linden (tom_at_kednos.com)
Date: 01/03/04


Date: Fri, 2 Jan 2004 17:38:37 -0800


< -----Original Message-----
< From: Alan E. Feldman [mailto:spamsink2001@yahoo.com]
< Sent: Friday, January 02, 2004 11:18 AM
< To: Info-VAX@Mvb.Saic.Com
< Subject: Re: Decimal Arith in DCL was(RE: Floating point arithmetic
< support in DCL)
<
<
< "Tom Linden" <tom@kednos.com> wrote in message
< news:<NDEMLKKEBOIFBMJLCECIIEGDCJAA.tom@kednos.com>...
< > Seems like everybody wants to have a hand at reinventing the log. This
< > problem was solved 40 years ago. Firstly, I have never seen command
< > interpreter that uses float, decimal yes, but float no. Secondly, they
<
< Then what to you call the Stratus example I posted in the original
< thread?
<
< Here it is again:
<
< ready 21:22:22
< display_line (calc 2.5 ** 9)
< 3814.697265625
< ready 21:22:40
< display_line (calc 2.5 ** 9 * 10)
< 38146.97265625
< ready 21:22:51
< display_line (calc 2.5 ** 9 * 10000000000000)
< 3.814697265625E+16
< ready 21:23:00
< display_line (calc 2.5 ** 99)
< 2.48920611114446E+39
< ready 21:23:32
<
< Is this not float? Or do you not consider this a command line
< interpreter because it is calling the "command function" calc?
< ("Command function" is Stratus VOS's equivalent of our lexical
< functions.) You can use math expressions without the calc function in
< certain statements VOS command macros. But it is still the calc
< function that is called to do the work.

The VOS command interpreter recognizes two data types, Character string and
Float Decimal with a maximum precision of 15 digits. All calculations and
conversions are performed by PL/I operators. I stand corrected.
<
< [...]
<
< Disclaimer: JMHO
< Alan E. Feldman
<
< ---
< Incoming mail is certified Virus Free.
< Checked by AVG anti-virus system (http://www.grisoft.com).
< Version: 6.0.553 / Virus Database: 345 - Release Date: 12/18/2003
<

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.553 / Virus Database: 345 - Release Date: 12/18/2003


Relevant Pages

  • Re: forgetting my DCL: what am I missing?
    ... >> but not for DCL command parsing? ... > program was invoked by a foreign command symbol which specified ... > supplied only the qualifier. ...
    (comp.os.vms)
  • Re: Newbie with command file problem
    ... > at the command prompt caused the file GPJSHQ.COM to be typed. ... TYPE, RENAME, SET, DELETE, COPY and LOGOUT are all DCL verbs. ... verb since DCL only parses the first four characters, ... command file would have done, but it was NOT your command file doing ...
    (comp.os.vms)
  • Re: forgetting my DCL: what am I missing?
    ... giving you this problem is because it is *not* using DCL to parse the command line. ... a space before a qualifier wouldn't matter. ... One of my pet peeves is "imitation" DCL command lines... ...
    (comp.os.vms)
  • Re: forgetting my DCL: what am I missing?
    ... >> Here's a little DCL trick that will solve your problem. ... command substitution happens in phase 2 of DCL command processing -- ... wanted to do and sneaked in the apostrophe trick. ...
    (comp.os.vms)
  • Re: Extending DCL [was: Re: DCL suggestion for f$verify()]
    ... DCL was fantastic 25 years ago but, ... The command processor knows that the objects have ... then submitInfo would be a Submitted object that you could deal with. ...
    (comp.os.vms)