RE: Decimal Arith in DCL was(RE: Floating point arithmetic support in DCL)
From: Tom Linden (tom_at_kednos.com)
Date: 01/03/04
- Next message: JF Mezei: "Re: A Christmas gift to all haters of Micro$hit"
- Previous message: Richard B. Gilbert: "Re: Decimal Arith in DCL was(RE: Floating point arithmetic support in DCL) in DCL) in DCL)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: JF Mezei: "Re: A Christmas gift to all haters of Micro$hit"
- Previous message: Richard B. Gilbert: "Re: Decimal Arith in DCL was(RE: Floating point arithmetic support in DCL) in DCL) in DCL)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|