#float


  1. dtoa

    Fast floating point primitive to string conversion

    v1.0.11 21.9M #floating-point #primitive #no-alloc #float

  2. zmij

    A double-to-string conversion algorithm based on Schubfach and xjb

    v1.0.23 55.9M #floating-point #string-conversion #no-alloc #float

  3. fast-float2

    Fast floating-point number parser

    v0.2.3 1.9M #no-std #parser #float

  4. az

    Casts and checked casts

    v1.3.0 1.7M #cast #integer #float #checked

  5. fraction

    Lossless fractions and decimals; drop-in float replacement

    v0.17.0 17.4M #numeric #decimal #float

  6. float_next_after

    A trait for native rust f64/f32 nextafter

    v2.0.0 2.7M #f64 #nextafter #float #increment #f32

  7. chinese-number

    Convert primitive numbers to Chinese numbers, or parse Chinese numbers to primitive numbers

    v0.8.2 886K #money #chinese #integer #float #localization

  8. atomic_float

    Floating point types which can be safely shared between threads

    v1.1.0 904K #floating-point #atomic #atomicf32 #float

  9. assert_float_eq

    Assertions for floating-point equality

    v1.2.0 105K #unit-testing #floating-point #float

  10. dragonbox_ecma

    Fast floating point to string conversion conforming to ECMAScript specification

    v0.1.12 538K #floating-point #javascript #no-alloc #float

  11. hexfloat2

    Parse and format IEEE754 floating point hexadecimal syntax

    v0.2.0 121K #floating-point #hexfloat #float

  12. dtoa-short

    Serialize float number and truncate to certain precision

    v0.3.5 11.4M #float #numbers

  13. dragonbox

    Fast floating point to string conversion

    v0.1.12 3.7K #floating-point #no-alloc #float

  14. test_help-rs

    Test helpers for Rust

    v0.1.1 #testing #assertions #approximate #f64 #float

  15. extended

    precision 80-bit floating-point numbers (f80)

    v0.2.0 3.6M #floating-point #numbers #extended-precision #float

  16. cast

    Ergonomic, checked cast functions for primitive types

    v0.3.0 24.0M #checked-cast #primitive-integer #checked #float #integer

  17. arpfloat

    Arbitrary-precision floating point library

    v0.1.11 280 #floating-point #arbitrary-precision #float

  18. rand-float

    Techniques for converting streams of random bits into floating-point numbers distributed as a uniform real in the unit interval

    v0.2.0 #random #uniform #float

  19. oxinum-float

    Arbitrary-precision floats for OxiNum (FBig/DBig via dashu-float)

    v0.1.0 #arbitrary-precision #bignum #oxinum #cooljapan #float

  20. assert-eq-float

    assert_eq_float! macros that support floats

    v0.1.7 14K #float #f64 #assert-eq #f32

  21. ryuu

    Fast floating point to string conversion

    v2.0.0+ryu.86d20a5 #floating-point #string-conversion #no-alloc #float

  22. zmij_ecma

    A double-to-string conversion algorithm based on Schubfach and yy

    v1.0.21 #floating-point #string-conversion #no-alloc #float

  23. buff-rs

    BUFF: Decomposed bounded floats for fast compression and queries

    v0.2.0 #compression #columnar #float

  24. fsum

    calculate accurate sum of floats

    v0.1.3 6.2K #sum #accurate #f64 #float #exact

  25. imagnum

    providing versatile numeric types supporting integers and floats designed for the Lucia programming language

    v0.2.30 #float #integer #lucia #numeric

  26. ord_subset

    Tools for working with the Ord subset of certain PartialOrd types, like floats

    v3.1.2 12K #float #iterator #partial-ord #ord #slice

  27. floating_bar

    Representing rational numbers using the floating-bar number type

    v0.5.0 #floating #bar #float #rational

  28. special-fun

    Special functions for Rust by binding to the Cephes library

    v0.3.1 1.5K #float #double #single

  29. precise

    Full precision decimal representation of f64

    v0.1.11 #decimal-representation #float

  30. number-general

    A generic number type for Rust which supports basic math and (de)serialization

    v0.14.0 470 #complex-numbers #unsigned-integer #float #integer #unsigned

  31. unit-intervals

    Constrained f32/f64 wrapper types for normalized [0, 1] and [-1, 1] values

    v0.1.0 #unit-interval #probability #no-std #normalized #float

  32. fast-float

    Fast floating-point number parser

    v0.2.0 238K #no-std #parser #float

  33. lower

    desugar math where the compiler wont

    v0.2.1 #math #fast #float

  34. float-pretty-print

    Format f64 for showing to user, not for serialisation

    v0.1.1 2.5K #pretty-print #format #float #human #pretty

  35. schubfach

    algorithm for floating-point to string conversion

    v0.1.0 #floating-point #ftoa #float

  36. no_denormals

    Temporarily turn off floating point denormals

    v0.3.0 4.4K #floating-point #dsp #float

  37. strtod

    A high precision floating point parser implementation for Rust

    v0.2.0 #parser #f64 #float

  38. zmij-js

    A double-to-string conversion algorithm based on Schubfach and xjb -- modified for ECMA-262 compliance

    v1.0.0 #zmij #to-string #float #no-alloc

  39. ordered-float-macros

    Declarative macros for ordered-float

    v0.7.0 #ordered-float #not-nan #macro #float

  40. amplify_apfloat

    rustc_apfloat with u256 backend to utilize Octuple precision floating-point format

    v0.3.1 4.6K #floating-point #u256 #float

  41. const-ryu

    Fast floating point to string conversion

    v0.1.0 #floating-point #string-conversion #no-alloc #float

  42. custom_float

    Custom floating-point types

    v0.3.1 750 #floating-point #numbers #custom #float

  43. isclose

    A collection of trait and macros for comparing approximate equality

    v0.3.0 #approximate #float #equals

  44. frand

    Blazingly fast random number generation library

    v0.10.1 440 #random #numbers #generator #float #random-number-generation

  45. floatguard

    checked floating-point arithmetic in Rust, safely elminating NaN and Infinity from floating-point computations

    v0.1.2 100 #infinity #nan #f64 #checked #float

  46. nan-default

    Derive macro for defaulting structs with floats to NAN

    v0.0.2 5.0K #nan #default #float #no-std

  47. fixed2float

    Fixed point to floating point conversion utility

    v4.0.1 #fixed-point #q-format #float

  48. piston-float

    Traits for generic floats in game development

    v1.0.1 381K #traits-for-generic #float #piston

  49. encoder-ryu

    Fast floating point to string conversion

    v1.0.16 350 #floating-point #string-conversion #no-alloc #float

  50. floco

    validates floats against constraints

    v0.1.3 150 #validation #wrapper #float #utility

  51. approx_eq

    A macro for comparing equality of two values up to an arbitrary error in the *relative* difference

    v0.1.8 12K #testing #testing-error #approximate #float #error

  52. teju

    Fast floating point to string conversion

    v0.1.1 370 #floating-point #no-alloc #float

  53. float_duration

    Floating-point Duration support. Provides quantification for spans of time. Unlike the standard std::time or the chrono crate, this crate aims to provide a fully featured Duration…

    v0.3.3 500 #simulation #duration #float

  54. inter-val

    Mathematical intervals, i.g., [a, b], (a, b), [a, b), and (a, b] on ℝ, and multi-dimensional axis-aligned boxes represented as Cartesian product of intervals

    v0.1.2 #bounds #float #box

  55. round_float

    Round f64 and f32 to specified number of decimals

    v1.2.2 750 #f64 #f32 #round #float
  56. Try searching with DuckDuckGo.


  57. ojcmp

    online judge comparer

    v0.4.0 #judge #comparer #online #float #strict

  58. introsort

    Fast sorting compatible with #[no_std]. Also has (optional) support for efficient and robust sorting of floating point numbers. Currently, introsort only builds on nightly

    v0.6.0 #sorting #floating-point #float

  59. beetle_bits

    A collection of bit-based types. Currently only u1 (1bit uint) and f3 (3bit float) are implemented

    v0.2.6 #bit #f3 #u1 #float #byte #unsigned-integer

  60. floating-duration

    Converts durations to fractional numbers and allows automatic formatting of durations

    v0.1.2 2.2K #formatting #fractional #float

  61. herbie-lint

    A rustc plugin to check for numerical instability

    v1.0.7 #lint #herbie #plugin #math #float

  62. astro_nalgebra

    astro-float for nalgebra

    v0.1.1 #big-float #nalgebra #arbitrary-precision #numeric #float

  63. my_r_num

    numeric type library that supports automatic optimization for various integer/float types, special values (NaN, positive/negative infinity), and implements common arithmetic operations and type conversions

    v0.1.1 #operation #math #float #integer-arithmetic #negative-infinity #nan #positive-infinity

  64. close-to

    providing comparisons with arbitrary precision

    v0.2.0 #assert #close #float #approximate

  65. hybrid_phi

    High-accuracy φ-based hybrid approximation method

    v1.0.0 #embedded #approximation #numerical #compression #float

  66. saturate

    Rust traits for saturating conversion between numeric types

    v0.1.0 #saturation #integer #float

  67. float_fast_print

    Fast float-to-string conversion based on the Ryū algorithm by Ulf Adams

    v0.1.2 #serialization #formatting #f64 #float #f32

  68. umath

    ffast-math in rust

    v0.0.7 100 #unsafe #fast-math #ffast-math #float #fast

  69. unsigned-f64

    A wrapper around f64 that guarantees that the value is always non-negative on the type level

    v0.2.0 #non-negative #f64 #unsigned #nonnegative #float

  70. ufmt_float

    A rough implementation of a writer for f32 and f64 for ufmt

    v0.2.0 #ufmt #float #f32 #level #writer #text-output

  71. intfloat

    Fast and simple hashable float alternative using ints

    v0.1.0 #float #num-trait #num

  72. floaters

    generate floating-point numbers in various ways

    v0.5.0 #floating-point #random #float

  73. clnooms

    Assembly-level implementation of interesting data types

    v0.5.0 #assembly #float #half #asm

  74. ananas

    Transform arbitrary data to Not-A-Number (NaN) payloads

    v0.2.0 #nan #steganography #float #payload

  75. fmul-to-int

    Float multiplication to integer part

    v1.0.0 #integer #f32 #f64 #float #multiplication

  76. float-lerp

    Lerp and InverseLerp functions for floats

    v0.2.0 #inverse-lerp #floats #float #interpolation

  77. float-polyfills

    Drop-in no_std-compatible polyfills for various f32 and f64 methods

    v0.1.0 #polyfill #no-std #float #math

  78. clampf

    Clamped floating-point types

    v0.1.1 #floating-point #clamp #float

  79. pure_decimal

    A decimal type with no NaN and Infinity

    v0.0.7 #infinity #nan #decimal #ordered #float

  80. compute-float

    Computes floating point numbers using Eisel-Lemire algolithm

    v0.1.0 150 #floating-point #eisel-lemire #float

  81. rationalize

    float to ratio

    v0.2.0 #ratio #float #chemistry #monorepo #template

  82. total_float_wrap

    Floating point wrapper implementing Hash and Ord according to IEEE 754 totalOrd

    v0.1.1 #total #comparison #float

  83. ufloat

    Wrappers around floating point numbers with ufmt trait implementations

    v0.1.0 #no-std #ufmt #float

  84. extended_matrix_float

    Float trait for extended_matrix lib

    v1.0.0 #matrix #extended-matrix #lib #float

  85. float

    Lightweight wrappers around primitive floating point types

    v0.1.2 #floating-point #ord #cmp

  86. float_sort

    sort f32 and f64 vectors safely using total_cmp

    v0.1.0 #f64 #float #f32 #sorting

  87. float_to_int

    Conversions of integer-value floats into integers

    v0.1.0 #convert #integer #float #int #conversion

  88. floatd

    just num_traits::Float + Debug + Display

    v0.1.0 #debug-display #display-debug #float #utility #display

  89. perfect-decimal

    Limited range decimals which serialize as IEE754 floats with no loss of precision

    v0.0.2 #serialization #decimal #float

  90. f_times

    offering a way to do something float times

    v0.1.0 #times #boolean #float

  91. value

    Type-level constants for generic contexts

    v0.1.1 #float #generic #integer #integer-value

  92. safeeft

    Safe and branchless error-free transformation algorithms for floating point numbers

    v0.0.5 #numbers #eft #math #math-numbers #float

  93. efloat

    Error-bounded Floating Point

    v0.2.0 #floating-point #error #float

  94. atomicfloat

    Atomic float type

    v0.1.0 #atomic #float