An open API service indexing awesome lists of open source software.

https://github.com/davidssmith/sigfig

Format floats with a fixed number of significant figures
https://github.com/davidssmith/sigfig

Last synced: 3 months ago
JSON representation

Format floats with a fixed number of significant figures

Awesome Lists containing this project

README

          

Format floating point numbers with a specified number of significant digits.

To build the file, clone the repo and simply run `make`.

Examples of use:

$ ./sigfig 3.1415926 3
3.14

$ ./sigfig -3 10
-3.000000000