19 releases

new 0.2.14 May 4, 2025
0.2.11 Oct 28, 2024
0.2.8 Oct 6, 2023
0.2.7 May 15, 2023
0.1.2 Jul 18, 2018

#2 in No standard library

Download history 1599733/week @ 2025-01-13 1510726/week @ 2025-01-20 1624417/week @ 2025-01-27 1771441/week @ 2025-02-03 1899875/week @ 2025-02-10 1764469/week @ 2025-02-17 1935639/week @ 2025-02-24 2297620/week @ 2025-03-03 2281167/week @ 2025-03-10 2579192/week @ 2025-03-17 2604648/week @ 2025-03-24 2075600/week @ 2025-03-31 2228212/week @ 2025-04-07 1954760/week @ 2025-04-14 1966588/week @ 2025-04-21 1770221/week @ 2025-04-28

8,029,985 downloads per month
Used in 10,327 crates (370 directly)

MIT license

615KB
13K SLoC

libm

A Rust implementations of the C math library.

Usage

libm provides fallback implementations for Rust's float math functions in core, and the core_float_math feature. If what is available suits your needs, there is no need to add libm as a dependency.

If more functionality is needed, this crate can also be used directly:

[dependencies]
libm = "0.2.11"

Contributing

Please check CONTRIBUTING.md

Minimum Rust version policy

This crate supports rustc 1.63 and newer.

License

Usage is under the MIT license, available at https://opensource.org/license/mit.

Contribution

Contributions are licensed under both the MIT license and the Apache License, Version 2.0, available at htps://www.apache.org/licenses/LICENSE-2.0. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as mentioned, without any additional terms or conditions.

See LICENSE.txt for full details.

No runtime deps