- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Converting string to floating number in DCL
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2020 01:58 PM - edited тАО07-14-2020 01:59 PM
тАО07-14-2020 01:58 PM - edited тАО07-14-2020 01:59 PM
Converting string to floating number in DCL
Hi,
How can I convert this string to a floating number so I can do Mathematical operations?
"9.8441676E-01"
Thanks!
MT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2020 02:15 PM
тАО07-14-2020 02:15 PM
Re: Converting string to floating number in DCL
I don't think you'll have much luck with just DCL. You may want to look into also using this utility that looks like it is written with easy operability with DCL symbols in mind:
http://www.eight-cubed.com/downloads.html#math
MATH
A Bison based infix calculator supporting all the one argument double precision C math functions. The calculator allows you to output local or global DCL symbols, and reads string representations of floating point numbers from DCL symbols on the right hand side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2020 03:03 PM
тАО07-14-2020 03:03 PM
Re: Converting string to floating number in DCL
> How can I convert this string to a floating number so I can do
> Mathematical operations?
DCL provides no floating-point support:
HELP INTEGER
What kinds of "Mathematical operations" on what? As usual, a more
detailed description of the actual problem which you are trying to solve
might be helpful.
Possibly interesting:
http://antinode.info/dec/sw/bc.html
But those programs don't support "Exx" notation.
One could, in principle, use basic string processing to convert
"9.8441676E-01" to "0.98441676", and proceed from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2020 05:40 AM
тАО07-15-2020 05:40 AM
Re: Converting string to floating number in DCL
We have a calculator executable, "calx" on our VMS 6.2 VAX.
Calx Version 5.0d
Calx is an interactive programmable scientific calculator program useful
for solving typical problems in computer engineering. Calx features
independent input and output radices in binary, octal, decimal, hex, or any
radix of base 2 through 36, as well as ascii characters and convenient "k"
(1024) notation. It allows nesting of parentheses, performs implied
multiplication, and features alternate scientific or engineering notation
outputs. Users may store data in the 10 user-assignable memories or in the
26 user-definable symbols (whose names may be up to six characters long).
Many common calculation parameters can be preset and reset through the use
of an initialization file. For more thorough information about Calx, see
the Calx Users Guide, CALX$LIBRARY:CALX.DOC, which is both a primer and a
reference guide to Calx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2020 12:12 AM
тАО07-16-2020 12:12 AM
Re: Converting string to floating number in DCL
Can you give some information from where this calx program can be obtained?