Registry / utility / float-extras

float-extras

JSON →
library0.1.6rscratesunverified

Provides extra floating-point math functions from the C math library, such as `roundeven` and `nextafter`.

# Cargo.toml [dependencies] float_extras = "0.1.6"
INSTALL
IMPORT
SIG · FLOAT-EXTRAS
F
float-extras
utilityrustv0.1.6
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.

roundeven
use float_extras::roundeven;

Rounds a float to the nearest integer, with ties rounding to even.

use float_extras::roundeven; fn main() { let result = roundeven(3.5); println!("roundeven(3.5) = {}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
float-extras — cargo add float-extras · libregistry