Re: [julia-users] limiting println() precision using defaults or decorators

2016-05-14 Thread Salman Haider
Terrific. Thanks. On Friday, May 13, 2016 at 7:48:54 PM UTC-4, Tom Breloff wrote: > > Check out the Formatting package, as well as the spin-off > https://github.com/ScottPJones/StringUtils.jl > > On Friday, May 13, 2016, Salman Haider > > wrote: > >> Hey guys, >> >> I have code littered with ro

Re: [julia-users] limiting println() precision using defaults or decorators

2016-05-14 Thread Scott Jones
On Friday, May 13, 2016 at 7:48:54 PM UTC-4, Tom Breloff wrote: > > Check out the Formatting package, as well as the spin-off > https://github.com/ScottPJones/StringUtils.jl Thanks for the tip of the hat, and right back at you! People should be aware, that some of the best parts of the formattin

Re: [julia-users] limiting println() precision using defaults or decorators

2016-05-13 Thread Tom Breloff
Check out the Formatting package, as well as the spin-off https://github.com/ScottPJones/StringUtils.jl On Friday, May 13, 2016, Salman Haider 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 t

[julia-users] limiting println() precision using defaults or decorators

2016-05-13 Thread Salman Haider
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