mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Added math.rint() -- round according to current IEEE754 mode
This commit is contained in:
parent
dab6cb8f6d
commit
71260b846e
5 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue