Calculating the value of e: Difference between revisions

(PascalABC.NET)
Line 2,733:
}
 
writeln ".e = ", .e
writeln " e = ", e</syntaxhighlight>
 
# compare to built-in constant e
writeln " e = ", e</syntaxhighlight>
 
{{out}}
The result depends on the .epsilon value and the divMaxScale mode. Set to 15, this would give the same result as the Go example.
 
<pre>.e = 2.71828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642742747
e = 2.71828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642742746
</pre>
 
1,007

edits