Added math.rint() -- round according to current IEEE754 mode

This commit is contained in:
Guido van Rossum 2000-05-11 18:19:42 +00:00
parent dab6cb8f6d
commit 71260b846e
5 changed files with 16 additions and 0 deletions

View file

@ -48,6 +48,7 @@ extern double hypot Py_PROTO((double, double));
#undef log
#undef log10
#undef pow
#undef rint
#undef sin
#undef sinh
#undef sqrt
@ -67,6 +68,7 @@ extern double hypot Py_PROTO((double, double));
#define log logd
#define log10 log10d
#define pow powd
#define rint rintd
#define sin sind
#define sinh sinhd
#define sqrt sqrtd