We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 423fb73 commit 2f60bcbCopy full SHA for 2f60bcb
src/api/api_numeral.cpp
@@ -15,6 +15,7 @@ Module Name:
15
Revision History:
16
17
--*/
18
+#include<cmath>
19
#include<iostream>
20
#include "api/z3.h"
21
#include "api/api_log_macros.h"
@@ -233,7 +234,7 @@ extern "C" {
233
234
RESET_ERROR_CODE();
235
if (!is_expr(a)) {
236
SET_ERROR_CODE(Z3_INVALID_ARG, nullptr);
- return 0.0/0.0;
237
+ return NAN;
238
}
239
expr* e = to_expr(a);
240
fpa_util & fu = mk_c(c)->fpautil();
@@ -242,7 +243,7 @@ extern "C" {
242
243
tmp.get().get_ebits() > 11 ||
244
tmp.get().get_sbits() > 53) {
245
246
247
248
return fu.fm().to_double(tmp);
249
0 commit comments