Yes. I see. Sorry about that. Try this:

SET VAR vResponse = (INT(20*.vResponse)/20 + IFEQ(INT(20*.vResponse)/20,
.vResponse, 0, .5))



Regards,
 
Stephen Markson
ForenSys The Forensic Systems Group
www.ForenSys.ca
416 512 6950
 

> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ELOEN
> Sent: June 7, 2005 6:19 AM
> To: RBG7-L Mailing List
> Subject: [RBG7-L] - RE: Rounding Puzzler
> 
> Stephen,
> 
> Note however that for a value like 2.20 gives 2.25 (should be 2.20)
> How about vresponse =
> (IFEQ(.vx,(INT(.vx*100)/100),.vx,((INT(.vx*100)+5)/100))
> 
> There is no need for including the value of 1.40 as it is always devided
by
> 0.05
> 
> Polychronis
> 

Reply via email to