Skip to content

Commit

Permalink
RoundingStrategy::MidpointTowardZero doc fix (paupino#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-brown authored Jan 5, 2022
1 parent 4d3cafa commit 005b7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub enum RoundingStrategy {
/// is away from zero. e.g. 6.4 -> 6, 6.5 -> 7, -6.5 -> -7
MidpointAwayFromZero,
/// When a number is halfway between two others, it is rounded toward the nearest number that
/// is toward zero. e.g. 6.4 -> 6, 6.5 -> 7, -6.5 -> -6
/// is toward zero. e.g. 6.4 -> 6, 6.5 -> 6, -6.5 -> -6
MidpointTowardZero,
/// The number is always rounded toward zero. e.g. -6.8 -> -6, 6.8 -> 6
ToZero,
Expand Down

0 comments on commit 005b7be

Please sign in to comment.