Doc: Initiate transition to next generation documentation
[shapes.git] / doc / parts / extensions / Shapes-Numeric-Constant-constants.sxml
blob27e16231aa1e81cc2add2c8c24343b076af573a1
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. -->
5 <!-- -->
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. -->
10 <!-- -->
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. -->
15 <!-- -->
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/>. -->
18 <!-- -->
19 <!-- Copyright 2008, 2014, 2015 Henrik Tidefelt -->
22 <book>
23 <within-namespace>..Shapes..Numeric..Constant</within-namespace>
24 <extension>constants</extension>
25 <description>
26 <p>Numeric constants.</p>
27 </description>
28 <prelude />
29 <needs></needs>
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)" />
37 <external>
38 <!--#include virtual="^/toc.xml" -->
39 </external>
41 <top>
42 <alphabetical-index/>
43 <p>This this extension is included by the standard prelude, it contains only numeric constants of general interest.</p>
44 </top>
46 <section id="extensions/numeric-constants/all">
47 <title>Bindings</title>
48 <body>
50 <system-binding identifier="golden">
51 <simple-value>
52 <type><named-type name="Float" /></type>
53 <description>
54 <p>The golden ratio, approximately <eq>1.618</eq>.</p>
55 </description>
56 </simple-value>
57 </system-binding>
59 <system-binding identifier="Golden">
60 <simple-value>
61 <type><named-type name="Float" /></type>
62 <description>
63 <p>The inverse of the golden ratio, approximately <eq>0.618</eq>.</p>
64 </description>
65 </simple-value>
66 </system-binding>
68 </body>
69 </section> <!-- End of all -->
70 </book>