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 Henrik Tidefelt -->
23 <title>constants
</title>
25 <p>Numeric constants.
</p>
27 <meta-selflink><self-href /></meta-selflink>
28 <base href=
<!--#expand-next-string-->"$(BASE)" />
29 <examples-home href=
<!--#expand-next-string-->"$(EXAMPLES)" />
30 <shapes-version number=
<!--#expand-next-string-->"$(SHAPES_VERSION)" />
31 <up-link><parent-namespace /></up-link>
34 <public-namespace>Shapes..Numeric
</public-namespace>
36 <!--#include virtual="^/toc.xml" -->
40 <p>This this extension is included by the standard prelude, it contains only numeric constants of general interest.
</p>
43 <section id=
"extensions/numeric-constants/all">
44 <title>Bindings
</title>
47 <system-binding identifier=
"golden">
49 <type><named-type name=
"Float" /></type>
51 <p>The golden ratio, approximately
<eq>1.618</eq>.
</p>
56 <system-binding identifier=
"Golden">
58 <type><named-type name=
"Float" /></type>
60 <p>The inverse of the golden ratio, approximately
<eq>0.618</eq>.
</p>
66 </section> <!-- End of all -->