#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

#498 in Math

Download history 14498/week @ 2024-06-18 15469/week @ 2024-06-25 15552/week @ 2024-07-02 16592/week @ 2024-07-09 20272/week @ 2024-07-16 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 76937/week @ 2024-09-24 69272/week @ 2024-10-01

246,783 downloads per month
Used in 97 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

~405KB