Float-polyfills
A Rust crate providing drop-in no_std-compatible polyfills for various f32 and f64 methods.
Supported methods
- abs
- acos
- asin
- atan
- atan2
- ceil
- copysign
- cos
- exp
- floor
- hypot
- ln
- log2
- log10
- mul_add
- powf
- powi
- recip
- round
- sin
- sin_cos
- sqrt
- tan
- trunc
Usage
Add polyfills to your no_std project:
use *;
Alternative crates
- micromath - includes polyfills for
f32
License
Float-polyfills is dual-licensed under Apache 2.0 and MIT terms.