Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!blake!oregon!michelbi From: michelbi@oregon.uoregon.edu (Michel Biedermann) Newsgroups: comp.lang.c Subject: Help rounding-off numbers (not using printf) Message-ID: <2730@oregon.uoregon.edu> Date: 20 May 89 15:45:49 GMT Organization: University of Oregon Lines: 10 Is there a C function (user defined or primitive (?)) that will let me truncate or round-off a number UP TO a certain decimal place. For example transforming .567 into .6 or -1.502 into -1.5 (i.e. N = round(.567) would set N to .6. I do not want to simply print a rounded-off number but be able to use it as well. Thanks a lot for the help... Michel Biedermann U. of Oregon