to_precision 0.1.2

Write out a float rounded to the given position.
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented0 out of 3 items with examples
  • Size
  • Source code size: 5.07 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.34 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • richard-uk1/to_precision
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • richard-uk1

A function that works like javascript's toPrecision.

Internally it rounds and then uses the built-in algorithm, so it will give different results to toPrecision. They may converge over time.