SIGFPE—算术异常、整数被零除或浮点异常。
SIGFPE - Arithmetic exception, integer divided by 0, or floating-point exception.
这个响应会抛出一个异常,因为温度的值不是浮点类型—它实际上是一个字符串。
This response should throw an exception because the temperature value is not a float type — it is actually a string.
浮点运算永远不会引发异常。
浮点运算永远不会引发异常。
应用推荐