Subject: | |
From: | |
Reply To: | |
Date: | Mon, 30 Sep 2002 15:10:52 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Art,
Try the following:
:setvar v1 2000
:setvar v2 "![v1 - 1]"
Showing the variables:
:showvar v#
V1 = 2000
V2 = 1999
Checking their types:
:echo ![typeof(v1)]
1
:echo ![typeof(v2)]
2
Regards
Paul Christidis
Hello,
Okay, I'd swear this is easy. I have a CI variable that is a numeric
string (like "2000") and I would like to set another CI variable to be a
numeric string that is one less ("1999"). How can I perform math on the
first variable? Is there a simple way (that I'm just not remembering) to
convert a string variable to a number, then back again?
TIA,
Art Frank
Manager of Information Systems
OHSU Foundation
[log in to unmask]
(503) 220-8320
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|