home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
PROGRAM
/
SNIP9404.ZIP
/
ROUND.H
< prev
next >
Wrap
Text File
|
1994-04-03
|
226b
|
12 lines
/*
** rounding macros by Dave Knapp & Thad Smith
*/
/* round to integer */
#define iround(x) floor((x)+0.5)
/* round number n to d decimal points */
#define fround(n,d) (floor((n)*pow(10.,(d))+.5)/pow(10.,(d)))