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
- Host: GitHub
- URL: https://github.com/davidssmith/sigfig
- Owner: davidssmith
- License: mit
- Created: 2019-03-11T23:00:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-27T13:07:59.000Z (over 4 years ago)
- Last Synced: 2025-03-30T07:16:11.242Z (10 months ago)
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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