I'm not an EasyTrieve programmer. We have it here. But if there is not some sort of ROUND function, then why not define a field with two decimal positions. Then take your number to be rounded; add .005 to it; and store it into then aforementioned variable, which should truncate the excess digits. The only time this won't work "properly" is if you need to "round to nearest even (or odd) digit".
On Tue, Jul 23, 2013 at 6:03 AM, Ron Thomas <[email protected]> wrote: > Hello. > > In easytrive is there any function to round off to the nearest decimal for > e.g if data is 13.5678 , i need to round off to 13.57.? > > Thanks, > Ron T > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- This is a test of the Emergency Broadcast System. If this had been an actual emergency, do you really think we'd stick around to tell you? Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
