float-polyfills

Crates.iofloat-polyfills
lib.rsfloat-polyfills
version0.1.0
created_at2025-05-09 21:50:54.960673+00
updated_at2025-05-09 21:50:54.960673+00
descriptionDrop-in no_std-compatible polyfills for various f32 and f64 methods.
homepagehttps://github.com/j-g00da/float-polyfills
repositoryhttps://github.com/j-g00da/float-polyfills
max_upload_size
id1667779
size23,333
Jagoda Estera Ślązak (j-g00da)

documentation

README

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 float_polyfills::*;

Alternative crates

License

License MIT License Apache 2.0

Float-polyfills is dual-licensed under Apache 2.0 and MIT terms.

Commit count: 13

cargo fmt