Check out the Formatting package, as well as the spin-off https://github.com/ScottPJones/StringUtils.jl
On Friday, May 13, 2016, Salman Haider <[email protected]> wrote: > Hey guys, > > I have code littered with round() or trunc() as follows: > println("β1: ", trunc(exp(results.minimum[2]), 3)) > > Is there a way to either set println() defaults or run it through a > decorator to limit the number of decimals it dumps on screen such that i > end up with code like the following but same results as above? > println("β1: ", exp(results.minimum[2])) > > Thanks. >
