Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e7e3e76
Add BigDecimal Add, Sub, Mul, and Div
iterion May 17, 2016
6dd4b9d
Simplify Add and Sub
iterion May 17, 2016
d986652
Updated documentation and fixed some unit-tests
akubera Sep 14, 2016
4bd0f33
Reimplemented from_str_radix to handle decimal points correctly
akubera Sep 16, 2016
7f2f8bc
BigDecimal: Implemented a correct version of divide.
akubera Sep 16, 2016
e78b39a
BigDecimal: Rewrote equality test to correct for scale differences. A…
akubera Sep 16, 2016
6706258
BigDecimal: Added more test conditions for math operators
akubera Sep 16, 2016
421f8bc
BigDecimal: Added equality tests to ensure that == works properly. Fi…
akubera Sep 16, 2016
80be642
Updated bigint & num-traits dependency versions to 0.1.35
akubera Sep 14, 2016
1bf9fb2
BigDecimal: Added some more tests, and `from_str_radix` will now pani…
akubera Sep 20, 2016
48f297f
BigDecimal: Changed parsing error-handling from panicing to returning…
akubera Sep 20, 2016
5ea8911
BigDecimal: Rewrite of from_str_radix method to do less parsing - now…
akubera Sep 21, 2016
e07c9db
BigDecimal: Removed support for underscores in string (deferred to th…
akubera Sep 21, 2016
651b4f7
BigDecimal: Fully removed underscore support and slightly simplified …
akubera Sep 21, 2016
2c04aae
Added bigdecimal to Makefile for testing
akubera Sep 21, 2016
9872dc0
BigDecimal: Cargo.toml - Removed unnecessary rand crate, fixed descri…
akubera Sep 26, 2016
d7d54cd
BigDecimal: Implemented ParseBigDecimalError variants for integer & B…
akubera Sep 26, 2016
b4d60a1
BigDecimal: Renamed set_scale to `with_scale` to avoid misinterpretat…
akubera Oct 5, 2016
c8be09c
ParseBigDecimalError::Other - Now wraps a String containing the error…
akubera Oct 5, 2016
bca167d
Added bigdecimal to default features
akubera Oct 5, 2016
e1ecf31
BigDecimal: Changed code to be compatible with rust 1.0.0
akubera Oct 5, 2016
9793d41
BigDecimal: Re-implemented `ten_to_the` to be recursive (and MUCH mor…
akubera Oct 5, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ optional = true
path = "bigint"
version = "0.1.35"

[dependencies.num-bigdecimal]
optional = true
path = "bigdecimal"
version = "0.1.32"

[dependencies.num-complex]
optional = true
path = "complex"
Expand Down Expand Up @@ -53,9 +58,10 @@ version = "0.3.8"

[features]
bigint = ["num-bigint"]
bigdecimal = ["num-bigdecimal"]
complex = ["num-complex"]
rational = ["num-rational"]
default = ["bigint", "complex", "rational", "rustc-serialize"]
default = ["bigdecimal", "bigint", "complex", "rational", "rustc-serialize"]

serde = [
"num-bigint/serde",
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CARGO_CMD ?= cargo

packages = bigint complex integer iter rational traits
packages = bigdecimal bigint complex integer iter rational traits

test:
$(MAKE) run-all TASK="test"
Expand Down
35 changes: 35 additions & 0 deletions bigdecimal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[package]
authors = ["The Rust Project Developers"]
description = "Big decimal implementation for Rust"
documentation = "http://rust-num.github.io/num"
homepage = "https://github.com/rust-num/num"
keywords = ["mathematics", "numerics"]
license = "MIT/Apache-2.0"
name = "num-bigdecimal"
repository = "https://github.com/rust-num/num"
version = "0.1.32"

[dependencies]

[dependencies.num-bigint]
path = "../bigint"
version = "0.1.35"

[dependencies.num-integer]
path = "../integer"
version = "0.1.32"

[dependencies.num-traits]
path = "../traits"
version = "0.1.35"

[dependencies.rustc-serialize]
optional = true
version = "0.3.19"

[dependencies.serde]
optional = true
version = ">= 0.7.0, < 0.9.0"

[features]
default = ["rustc-serialize"]
Loading