RosettaCodeData/Task/Variable-size-Set/Phix/variable-size-set.phix

5 lines
195 B
Text
Raw Permalink Normal View History

2020-02-17 23:21:07 -08:00
include mpfr.e -- requires 0.8.1+
mpfr pi = mpfr_init(0,-1001) -- 1000 dp, +1 for the "3."
2019-09-12 10:33:56 -07:00
mpfr_const_pi(pi)
mpfr_printf(1,"PI with 1000 decimals: %.1000RDf\n\n",pi)