mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
remove all occurence of math.rint() from the sources
(and yes, "Currintly" also counts <0.5 wink>)
This commit is contained in:
parent
0707fea5ee
commit
10e1bf2f64
9 changed files with 90 additions and 133 deletions
|
@ -129,18 +129,6 @@ testit('pow(1,0)', math.pow(1,0), 1)
|
|||
testit('pow(2,1)', math.pow(2,1), 2)
|
||||
testit('pow(2,-1)', math.pow(2,-1), 0.5)
|
||||
|
||||
print 'rint'
|
||||
try:
|
||||
math.rint
|
||||
except AttributeError:
|
||||
# this platform does not have rint, that is fine, skip the test
|
||||
pass
|
||||
else:
|
||||
testit('rint(0.7)', math.rint(0.7), 1)
|
||||
testit('rint(-0.3)', math.rint(-0.3), 0)
|
||||
testit('rint(2.5)', math.rint(2.5), 2)
|
||||
testit('rint(3.5)', math.rint(3.5), 4)
|
||||
|
||||
print 'sin'
|
||||
testit('sin(0)', math.sin(0), 0)
|
||||
testit('sin(pi/2)', math.sin(math.pi/2), 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue