#libm #maths #float #traits #extension #backed #full

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

#77 in Math

Download history 46379/week @ 2024-11-21 43282/week @ 2024-11-28 48947/week @ 2024-12-05 48913/week @ 2024-12-12 36090/week @ 2024-12-19 24057/week @ 2024-12-26 47491/week @ 2025-01-02 66721/week @ 2025-01-09 62320/week @ 2025-01-16 63093/week @ 2025-01-23 72994/week @ 2025-01-30 83338/week @ 2025-02-06 75167/week @ 2025-02-13 83138/week @ 2025-02-20 76546/week @ 2025-02-27 73445/week @ 2025-03-06

324,413 downloads per month
Used in 219 crates (9 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