On Sun, Nov 15, 2015 at 1:25 PM, digxx <[email protected]> wrote: > Is it possible to display the precision of a number to arbitrary decimals > points? > For example if I want to display pi (or any other result) up to 1e6 > decimals?!
For arbitrary result, you can't print arbitrary precision if your calculation does not have that precision (unless you just want to see 1e6 zeros printed). You want to perform the calculation on BigFloat[1] if you need that precision (and then printing it out should give you the expected number of digits). In theory, there could be a way to print out pi to a high precision without converting it to a BigFloat first although I also don't see why that's a useful thing to do in general. [1] http://julia.readthedocs.org/en/latest/manual/integers-and-floating-point-numbers/#arbitrary-precision-arithmetic
