Skip to content

Commit 82598b2

Browse files
committed
fix readme example
1 parent 7fc1040 commit 82598b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "astro-float"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
edition = "2021"
55
authors = ["stencillogic <[email protected]>"]
66
license = "MIT"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ use astro_float::expr;
2828

2929
// Create a context with precision 1024, and rounding to even.
3030
let mut ctx = Context::new(1024, RoundingMode::ToEven,
31-
Consts::new().expect("Constants cache initialized"));
31+
Consts::new().expect("Constants cache initialized"),
32+
-10000, 10000);
3233

3334
// Compute pi: pi = 6*arctan(1/sqrt(3))
3435
let pi = expr!(6 * atan(1 / sqrt(3)), &mut ctx);

0 commit comments

Comments
 (0)