Quick follow up:  One of the guys discovered this:

Run the following pgm, then uncomment out the last 2 lines and run it again.
Watch what happens to the first value for Y....
 

X = 1234.78
Y = X "0"
CRT X
CRT Y
                  
* Y = X"R#0"
* CRT Y


 

-----Original Message-----
From: Daly, Mark 
Sent: Monday, September 20, 2004 9:28 AM
To: '[EMAIL PROTECTED]'
Subject: [U2] Numeric rounding - UV 9.4 & 10.1

I have a habbit of using the following syntax to round numbers to a certain
number of decimal places:

X = 1.623
CRT X '2'
CRT X '0'

Yields:

1.62
2

It's always worked fine. Until we did an upgrade to 10.1. Now it has been
deemed un-reliable because it produced an undesirable result (an empty
string) in a rather sensitive program.

So, first question is:  Is this a bad habbit I've had all these years?

Second question:  Has anyone else experienced a problem with this method of
rounding? Is it a known bug?
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to