Help needed to round-off a number

Michel Biedermann michelbi at oregon.uoregon.edu
Sat May 20 11:17:37 AEST 1989


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.
 
Thanks a lot for the help...
 
Michel Biedermann
U. of Oregon



More information about the Comp.lang.c mailing list