Include a file: Difference between revisions

→‎{{header|Wren}}: Code partly rewritten.
(Add lang example)
(→‎{{header|Wren}}: Code partly rewritten.)
 
Line 2,489:
 
Here's a simple example.
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt // imports the Fmt module and makes the 'Fmt' class available
import "./math" for Int Math // imports the Math module and makes the 'IntMath' class available
 
Fmt.print("The maximumvalue safeof integer'e' into Wren6 d.p. is $,df.", IntMath.maxSafee)</syntaxhighlight>
 
{{out}}
<pre>
The maximumvalue safeof integer'e' into Wren6 d.p. is 9,007,199,254,740,9912.718282.
</pre>
 
9,476

edits