#libm #maths #std #traits #extension #full #float

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

#256 in Math

Download history 5772/week @ 2024-01-06 5483/week @ 2024-01-13 6683/week @ 2024-01-20 8497/week @ 2024-01-27 8600/week @ 2024-02-03 9620/week @ 2024-02-10 9002/week @ 2024-02-17 10012/week @ 2024-02-24 9963/week @ 2024-03-02 11170/week @ 2024-03-09 11759/week @ 2024-03-16 12400/week @ 2024-03-23 10845/week @ 2024-03-30 11381/week @ 2024-04-06 14772/week @ 2024-04-13 11419/week @ 2024-04-20

50,016 downloads per month
Used in 42 crates (3 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

~410KB