擅长:python、mysql、java
<p>根据你的问题</p>
<blockquote>
<p>will this compute the first sine function and return it's rounded value (i.e. floating point limitation) and then compute the sine of that returned value etc </p>
</blockquote>
<p>函数返回第一个浮点值,然后再次调用<code>def nestedSin(val, amount)</code>函数,并使用最新的四舍五入值调用它,当超出范围时,它将提升</p>
<pre><code>OverflowError: math range error
</code></pre>
<p>所以这两个例子是一样的。你知道吗</p>
<p><a href="https://docs.python.org/2/library/exceptions.html#exceptions.OverflowError" rel="nofollow">OverflowError</a>:-当算术运算的结果太大而无法表示时引发。你知道吗</p>