Registry / testing / nearly-eq

nearly-eq

JSON →
library0.2.4rscratesunverified

Nearly(Approximately) equal traits and assertion for floating-point comparisons.

# Cargo.toml [dependencies] nearly_eq = "0.2.4"
INSTALL
IMPORT
SIG · NEARLY-EQ
N
nearly-eq
testingrustv0.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NearlyEq
use nearly_eq::NearlyEq;

Compare floating-point numbers with tolerance.

use nearly_eq::NearlyEq; fn main() { let a = 1.0000001_f64; let b = 1.0_f64; assert!(a.nearly_eq(b, 1e-6)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
nearly-eq — cargo add nearly-eq · libregistry