1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <?xml-stylesheet type=
"text/xsl" href=
"formats/html.xsl"?>
4 <!-- This file is part of Shapes. -->
6 <!-- Shapes is free software: you can redistribute it and/or modify -->
7 <!-- it under the terms of the GNU General Public License as published by -->
8 <!-- the Free Software Foundation, either version 3 of the License, or -->
9 <!-- any later version. -->
11 <!-- Shapes is distributed in the hope that it will be useful, -->
12 <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
13 <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
14 <!-- GNU General Public License for more details. -->
16 <!-- You should have received a copy of the GNU General Public License -->
17 <!-- along with Shapes. If not, see <http://www.gnu.org/licenses/>. -->
19 <!-- Copyright 2008, 2014, 2015 Henrik Tidefelt -->
23 <within-namespace>..Shapes..Numeric..Constant
</within-namespace>
24 <extension>constants
</extension>
26 <p>Numeric constants.
</p>
31 <title><self /></title>
32 <meta-selflink><self-href /></meta-selflink>
33 <up-link><parent-namespace /></up-link>
34 <base href=
<!--#expand-next-string-->"$(BASE)" />
35 <examples-home href=
<!--#expand-next-string-->"$(EXAMPLES)" />
36 <shapes-version number=
<!--#expand-next-string-->"$(SHAPES_VERSION)" />
38 <!--#include virtual="^/toc.xml" -->
43 <p>This this extension is included by the standard prelude, it contains only numeric constants of general interest.
</p>
46 <section id=
"extensions/numeric-constants/all">
47 <title>Bindings
</title>
50 <system-binding identifier=
"golden">
52 <type><named-type name=
"Float" /></type>
54 <p>The golden ratio, approximately
<eq>1.618</eq>.
</p>
59 <system-binding identifier=
"Golden">
61 <type><named-type name=
"Float" /></type>
63 <p>The inverse of the golden ratio, approximately
<eq>0.618</eq>.
</p>
69 </section> <!-- End of all -->