InstaRound.jl

An extension of Julia's base round method for human beings.
Author PyDataBlog
Popularity
6 Stars
Updated Last
2 Years Ago
Started In
July 2021

InstaRound

Stable Dev Build Status Coverage

A simple package for extending Base.round with a more human readable rounding style.

Installation

To install InstaRound either do

using Pkg
Pkg.add("InstaRound")

or switch to Pkg mode with ] and issue

pkg> add InstaRound

Basic Usage

Round numbers with IGRound

using InstaRound

julia> round(IGRound, 1_000_000; names=false)
"1.0M"

julia> round(IGRound, 1_000_000; names=true)
"1.0 Million"