Variable size/Set: Difference between revisions
m
→{{header|Phix}}: use new simplified d.p. setting
(add →Free Pascal) |
m (→{{header|Phix}}: use new simplified d.p. setting) |
||
Line 412:
mpfr (floating point) variables require the precision to be explicitly specified in binary bits, for example if you want PI to 1000 decimal places:
{{libheader|mpfr}}
<lang Phix>include mpfr.e -- requires 0.8.
mpfr_const_pi(pi)
mpfr_printf(1,"PI with 1000 decimals: %.1000RDf\n\n",pi)</lang>
|