1748224 Members
4482 Online
108759 Solutions
New Discussion юеВ

Calcalator program

 
SOLVED
Go to solution
Jack Trachtman
Super Advisor

Calcalator program

I've always been disappointed that VMS doesn't include a calculator program - even a four-function floating-point calculator would be very useful for DCL scripts.

What are other people using for simple FP calculations?
5 REPLIES 5
Martin P.J. Zinser
Honored Contributor

Re: Calcalator program

Hello,

http://www.decus.de:8080/www/vms/sw/icalc.htmlx

result can be found in symbol icalc_out

Greetings, Martin
Hein van den Heuvel
Honored Contributor

Re: Calcalator program

In pure DCL, when there appears to be a need for floating point calculations, then I tend to normalize down to a minimal base unit and work with that untill the final printout. So I'd do all the calculation in cents, or seconds, or percents, or bytes, or milliseconds, whatever was appropriate.

Check out the lexical function F$FAO or pretty printing.

Recently I find it more productive to just use PERL whenever/whereever I can.

hth,
Hein.
Guy Peleg
Respected Contributor
Solution

Re: Calcalator program

Hello Jack,

Just wanted to let you know that 64 bit calculation and floating point support
in DCL is something we are currently investigating. It might show up in one of the
next versions of the O/S.

Guy Peleg
OpenVMS DCL Engineerng
Warren Sander
Occasional Advisor

Re: Calcalator program

What about sys$system:decw$calc.exe?
ShyGuy
Advisor

Re: Calcalator program

|Just wanted to let you know that 64 bit calculation and floating point support
|in DCL is something we are currently investigating.
|It might show up in one of the
next versions of the O/S.

|Guy Peleg
|OpenVMS DCL Engineerng

That sounds really nice Guy! What have you planned regarding additional control structures, such as loops?

/ShyGuy
Isn't every computer a Digital computer?