Euler's constant 0.5772...: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
imported>Maxima enthusiast
No edit summary
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 1,911:
{{libheader|Wren-fmt}}
Note that, whilst internally double arithmetic is carried out to the same precision as C (Wren is written in C), printing doubles is effectively limited to a maximum of 14 decimal places.
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
 
var eps = 1e-6
Line 2,031:
{{libheader|Wren-gmp}}
The display is limited to 100 digits for all four examples as I couldn't see much point in showing them all.
<syntaxhighlight lang="ecmascriptwren">import "./gmp" for Mpf
 
var euler = Fn.new { |n, r, s, t|
Line 2,090:
</pre>
===The easy way (Embedded)===
<syntaxhighlight lang="ecmascriptwren">import "./gmp" for Mpf
 
var prec = (101/0.30103).round
9,476

edits