mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 10:14:42 +00:00
bump version, add double access
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b1ab473035
commit
694a6a26c9
8 changed files with 37 additions and 24 deletions
|
@ -227,6 +227,11 @@ extern "C" {
|
|||
Z3_CATCH_RETURN("");
|
||||
}
|
||||
|
||||
double Z3_API Z3_get_numeral_double(Z3_context c, Z3_ast a) {
|
||||
Z3_string s = Z3_get_numeral_decimal_string(c, a, 12);
|
||||
return std::stod(std::string(s));
|
||||
}
|
||||
|
||||
Z3_string Z3_API Z3_get_numeral_decimal_string(Z3_context c, Z3_ast a, unsigned precision) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_get_numeral_decimal_string(c, a, precision);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue