Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 19 days 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T09:01:00.000Z (about 3 years ago)
- Last Synced: 2024-10-03T05:06:01.630Z (about 1 month 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
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://PyDataBlog.github.io/InstaRound.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://PyDataBlog.github.io/InstaRound.jl/dev)
[![Build Status](https://github.com/PyDataBlog/InstaRound.jl/workflows/CI/badge.svg)](https://github.com/PyDataBlog/InstaRound.jl/actions)
[![Coverage](https://codecov.io/gh/PyDataBlog/InstaRound.jl/branch/master/graph/badge.svg)](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"
```