Skip to content

Commit

Permalink
Version 1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
paupino committed Apr 19, 2021
1 parent 6605da6 commit f8df779
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
name = "rust_decimal"
readme = "./README.md"
repository = "https://github.com/paupino/rust-decimal"
version = "1.11.0"
version = "1.11.1"
exclude = [ "tests/generated/*" ]

[dependencies]
Expand Down
4 changes: 4 additions & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Version History

## 1.11.1

This is a documentation only release and has no new functionality included. Thank you [@c410-f3r](https://github.com/c410-f3r) for the documentation fix.

## 1.11.0

This release includes a number of bug fixes and ergonomic improvements.
Expand Down
4 changes: 2 additions & 2 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust_decimal_macros"
version = "1.11.0"
version = "1.11.1"
authors = ["Paul Mason <paul@form1.co.nz>"]
edition = "2018"
description = "Shorthand macros to assist creating Decimal types."
Expand All @@ -12,7 +12,7 @@ categories = ["science","data-structures"]
license = "MIT"

[dependencies]
rust_decimal = { path = "..", version = "1.11.0" }
rust_decimal = { path = "..", version = "1.11.1" }
quote = "1.0"

[features]
Expand Down
2 changes: 1 addition & 1 deletion src/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ impl Decimal {
}

/// Deserializes the given bytes into a decimal number.
/// The deserialized byte representation must be 16 bytes and adhere to the followign convention:
/// The deserialized byte representation must be 16 bytes and adhere to the following convention:
///
/// * Bytes 1-4: flags
/// * Bytes 5-8: lo portion of `m`
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ pub use error::Error;
#[cfg(feature = "maths")]
pub use maths::MathematicalOps;

/// A convenience module appropriate for glob imports (`use rust_decimal::prelude::*;`).
pub mod prelude {
#[cfg(feature = "maths")]
pub use crate::maths::MathematicalOps;
Expand Down
2 changes: 2 additions & 0 deletions src/maths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const PI: Decimal = Decimal::from_parts_raw(1102470953, 185874565, 1703060790, 1
const LN2: Decimal = Decimal::from_parts_raw(2831677809, 328455696, 3757558395, 1900544);
const EXP_TOLERANCE: Decimal = Decimal::from_parts(2, 0, 0, false, 7);

/// Trait exposing various mathematical operations that can be applied using a Decimal. This is only
/// present when the `maths` feature has been enabled.
pub trait MathematicalOps {
/// The estimated exponential function, e<sup>x</sup>, rounded to 8 decimal places. Stops
/// calculating when it is within tolerance of roughly 0.000002 in order to prevent
Expand Down

0 comments on commit f8df779

Please sign in to comment.