#libm #maths #float #traits #std #extension #backed

no-std core_maths

Extension trait for full float functionality in #[no_std] backed by libm

3 unstable releases

Uses old Rust 2015

0.1.1 Feb 1, 2025
0.1.0 Sep 19, 2023
0.0.0 Sep 8, 2023

#80 in Math

Download history 53676/week @ 2024-10-30 58714/week @ 2024-11-06 60278/week @ 2024-11-13 49509/week @ 2024-11-20 40851/week @ 2024-11-27 48380/week @ 2024-12-04 47156/week @ 2024-12-11 44873/week @ 2024-12-18 23964/week @ 2024-12-25 40778/week @ 2025-01-01 61838/week @ 2025-01-08 65599/week @ 2025-01-15 62582/week @ 2025-01-22 69617/week @ 2025-01-29 82994/week @ 2025-02-05 62448/week @ 2025-02-12

289,247 downloads per month
Used in 210 crates (8 directly)

MIT license

33KB
412 lines

Extension trait for full float functionality in #[no_std] backed by libm.

Method signatures, implementation, and documentation are copied from as std 1.72, with calls to instrinsics replaced by their libm equivalents.

Usage

#[allow(unused_imports)] // will be unused on std targets
use core_maths::*;

3.9.floor();

lib.rs:

Extension trait for full float functionality in #[no_std] backed by libm.

Method signatures, implementation, and documentation are copied from as std 1.72, with calls to instrinsics replaced by their libm equivalents.

Usage

#[allow(unused_imports)] // will be unused on std targets
use core_maths::*;

3.9.floor();

Dependencies

~395KB