Skip to content

Commit

Permalink
Merge branch 'python'
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpute committed Mar 2, 2024
2 parents 54ff339 + 0bc78f8 commit 8245b55
Show file tree
Hide file tree
Showing 53 changed files with 3,171 additions and 292 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ members = [
"integer",
"float",
"macros",
"python",
"rational",
]
default-members = ["base", "integer", "float", "rational", "macros"]
Expand Down
1 change: 1 addition & 0 deletions float/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Implement `TryFrom<Repr>` and `TryFrom<FBig>` for primitive integers.
- Implement `TryFrom<Repr<2>>` and `TryFrom<FBig<_, 2>>` for primitive floats.
- Implement `From<UBig>` and `From<IBig>` for `Repr`.
- Implement `core::fmt::{Binary, Oct, LowerExp, UpperExp, LowerHex, UpperHex}` for `Repr`, `FBig` (some are limited to certain bases).

## 0.4.2

Expand Down
2 changes: 1 addition & 1 deletion float/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ postgres-types_v02 = ["dep:postgres-types_v02", "dep:_bytes", "std"]
[dependencies]
dashu-base = { version = "0.4.1", default-features = false, path = "../base" }
dashu-int = { version = "0.4.1", default-features = false, path = "../integer" }
static_assertions = { version = "1.1"}
static_assertions = { version = "1.1" }

# stable dependencies
rustversion = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion float/src/consts.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//! Constants calculation
// to be implemented
// to be implemented, should be associated with the Context type
2 changes: 2 additions & 0 deletions float/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ impl<R: Round, const B: Word> FBig<R, B> {
.map(|repr| FBig::new(repr, context))
}

// TODO: implement quantize() (like the python decimal)

/// Convert the float number to integer with the given rounding mode.
///
/// # Warning
Expand Down
Loading

0 comments on commit 8245b55

Please sign in to comment.