HP3000-L Archives

March 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Anthony Ballo <[log in to unmask]>
Reply To:
Anthony Ballo <[log in to unmask]>
Date:
Fri, 9 Mar 2001 11:16:15 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
I have two variables that I want to subtract:

ECHO echo setvar _slsnet (!_slsgross - !_gc2)         !>!> vtmp1   >> tmp1
echo :run main.pub.vesoft;STDIN=vtmp1                              >> tmp1
echo %exit                                                         >> tmp1

Now, I have a var that looks like this:

_SLSNET =         16916.310547

and I want it to just read 16916.31 (truncate, or round).

Chris Bartram has helped me previously and 'suspects the rounding problem is
do to MPEX's use of IEEE floating point for calculations...'

Ideas?

- Anthony

--
Anthony Ballo
Business Analyst
Coldwater Creek Inc.
Voice 208-265-7358 ~ Fax 208-265-7055
Pager 208-444-8401 ~ Cell 208-610-0118
Page via email  mailto:[log in to unmask]
Send page via internet:
http://www.mobile.att.net/mc/personal/pager_show.cgi
http://www.coldwatercreek.com
 <<Anthony Ballo.vcf>>

ATOM RSS1 RSS2