Skip to content

Commit 76af3db

Browse files
committedJan 1, 2023
Release 0.13.0
1 parent dfa9930 commit 76af3db

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
 

‎CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change Log
22

3+
## [0.13.0] - 2023-01-01
4+
5+
### Changed
6+
- `PartialCmp` now compares `NaN` with the other values and returns it as the smallest possible value. Thus, `NaN < -Inf`.
7+
8+
### Fixed
9+
- `partial_cmp` now behaves exactly the same as `cmp` (PartialOrd is now consistent with Ord).
10+
This fixes an issue introduced in `0.12.2` with the implementation of `Ord`,
11+
where `Ord` would behave differently from `PartialOrd` with `NaN` values.
12+
Special thanks to Hsingai Tigris Altaica aka DrAlta for fixing this.
13+
314
## [0.12.2] - 2022-12-04
415

516
### Added

‎Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fraction"
3-
version = "0.12.2"
3+
version = "0.13.0"
44
authors = ["dnsl48 <dnsl48@gmail.com>"]
55

66
description = "Lossless fractions and decimals; drop-in float replacement"

0 commit comments

Comments
 (0)
Please sign in to comment.