Actually, I think you would need to use the REUSE function on the 0.5 also; 
otherwise the 0.5 will be added to only the first value in the intermediate 
result of CONS/REUSE(UNITS).

INT(CONS/REUSE(UNITS)+REUSE(0.5))

However, on the old version of UniVerse I'm using, the INT function does not 
work with a multivalued argument and gives an error message. What I would use 
instead is the OCONVS function, which is the multivalued version of OCONV:

OCONVS(CONS/REUSE(UNITS)+REUSE(0.5),'MD0')

Mark

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Norman Morgan
Sent: Monday, March 26, 2007 3:34 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UniVerse I-descriptor Help


> i feel it should be INT(CONS/REUSE(UNITS)+ 0.5)

You are correct, of course.  I rounded in the wrong place.

===========================================================
Norman Morgan <> [EMAIL PROTECTED] <> http://www.brake.com
===========================================================
The Queue Principle: The longer you wait in line, the greater
The likelihood that you are standing in the wrong line. 
===========================================================

 

> -----Original Message-----
> 
> > -----Original Message-----
> > I'm trying to avoid having to write a subroutine to, 
> basically, always 
> > round up the result of a division between a multi-value field and a 
> > single-value one, in an I-descriptor (UV 10.1).
> >  
> > My MV field is named CONS, my single value one is names UNITS, the 
> > formula is CONS / REUSE(UNITS). The result will obviously be a 
> > multi-value.
> 
> I don't know Universe I-descriptors, but can you say 
> INT((CONS + 0.5) /
> REUSE(UNITS))
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to