https://github.com/pydatablog/instaround.jl
An extension of Julia's base round method for human beings.
https://github.com/pydatablog/instaround.jl
julia-language rounding-strategy
Last synced: 3 months ago
JSON representation
An extension of Julia's base round method for human beings.
- Host: GitHub
- URL: https://github.com/pydatablog/instaround.jl
- Owner: PyDataBlog
- License: mit
- Created: 2021-07-01T19:19:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T09:01:00.000Z (almost 4 years ago)
- Last Synced: 2024-10-19T05:18:17.507Z (9 months ago)
- Topics: julia-language, rounding-strategy
- Language: Julia
- Homepage:
- Size: 113 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InstaRound
[](https://PyDataBlog.github.io/InstaRound.jl/stable)
[](https://PyDataBlog.github.io/InstaRound.jl/dev)
[](https://github.com/PyDataBlog/InstaRound.jl/actions)
[](https://codecov.io/gh/PyDataBlog/InstaRound.jl)A simple package for extending Base.round with a more human readable rounding style.
## Installation
To install `InstaRound` either do
```julia
using Pkg
Pkg.add("InstaRound")
```or switch to `Pkg` mode with `]` and issue
```julia
pkg> add InstaRound
```## Basic Usage
Round numbers with IGRound
```julia
using InstaRoundjulia> round(IGRound, 1_000_000; names=false)
"1.0M"julia> round(IGRound, 1_000_000; names=true)
"1.0 Million"
```