#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

#592 in Math

Download history 20599/week @ 2024-07-21 18695/week @ 2024-07-28 37517/week @ 2024-08-04 38591/week @ 2024-08-11 40020/week @ 2024-08-18 40479/week @ 2024-08-25 42152/week @ 2024-09-01 43841/week @ 2024-09-08 43932/week @ 2024-09-15 77117/week @ 2024-09-22 80437/week @ 2024-09-29 80751/week @ 2024-10-06 60282/week @ 2024-10-13 54953/week @ 2024-10-20 48979/week @ 2024-10-27 61644/week @ 2024-11-03

229,180 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