#libm #maths #float #traits #std #extension #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

#591 in Math

Download history 42331/week @ 2024-08-07 41729/week @ 2024-08-14 38135/week @ 2024-08-21 38503/week @ 2024-08-28 47325/week @ 2024-09-04 40519/week @ 2024-09-11 58318/week @ 2024-09-18 79431/week @ 2024-09-25 83716/week @ 2024-10-02 69673/week @ 2024-10-09 56423/week @ 2024-10-16 55181/week @ 2024-10-23 53676/week @ 2024-10-30 58714/week @ 2024-11-06 60278/week @ 2024-11-13 49494/week @ 2024-11-20

232,010 downloads per month
Used in 136 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