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

no-std core_maths

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

2 unstable releases

Uses old Rust 2015

0.1.0 Sep 19, 2023
0.0.0 Sep 8, 2023

#617 in Math

Download history 21307/week @ 2024-07-23 18855/week @ 2024-07-30 40837/week @ 2024-08-06 40140/week @ 2024-08-13 38758/week @ 2024-08-20 36934/week @ 2024-08-27 47497/week @ 2024-09-03 41920/week @ 2024-09-10 50500/week @ 2024-09-17 76940/week @ 2024-09-24 84403/week @ 2024-10-01 76109/week @ 2024-10-08 56917/week @ 2024-10-15 55875/week @ 2024-10-22 51792/week @ 2024-10-29 58504/week @ 2024-11-05

234,563 downloads per month
Used in 132 crates (7 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