jeroen Fri Sep 21 19:21:08 2001 EDT
Modified files:
/phpdoc/en/functions cpdf.xml misc.xml pgsql.xml sem.xml sesam.xml
strings.xml
Log:
Fix more double->float (en passant a very little bit of xml-improvement)
Index: phpdoc/en/functions/cpdf.xml
diff -u phpdoc/en/functions/cpdf.xml:1.29 phpdoc/en/functions/cpdf.xml:1.30
--- phpdoc/en/functions/cpdf.xml:1.29 Fri Sep 21 18:47:36 2001
+++ phpdoc/en/functions/cpdf.xml Fri Sep 21 19:21:07 2001
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
-<!-- $Revision: 1.29 $ -->
+<!-- $Revision: 1.30 $ -->
<reference id="ref.cpdf">
<title>ClibPDF functions</title>
<titleabbrev>ClibPDF</titleabbrev>
@@ -951,7 +951,7 @@
<paramdef>float <parameter>height</parameter></paramdef>
<paramdef>float <parameter>width</parameter></paramdef>
<paramdef>
- double <parameter><optional>unit</optional></parameter>
+ float <parameter><optional>unit</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
@@ -2074,7 +2074,7 @@
<paramdef>float <parameter>y-coor</parameter></paramdef>
<paramdef>int <parameter><optional>mode</optional></parameter></paramdef>
<paramdef>
- double <parameter><optional>orientation</optional></parameter>
+ float <parameter><optional>orientation</optional></parameter>
</paramdef>
<paramdef>
int <parameter><optional>alignmode</optional></parameter>
Index: phpdoc/en/functions/misc.xml
diff -u phpdoc/en/functions/misc.xml:1.54 phpdoc/en/functions/misc.xml:1.55
--- phpdoc/en/functions/misc.xml:1.54 Fri Sep 21 19:08:48 2001
+++ phpdoc/en/functions/misc.xml Fri Sep 21 19:21:07 2001
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
-<!-- $Revision: 1.54 $ -->
+<!-- $Revision: 1.55 $ -->
<reference id="ref.misc">
<title>Miscellaneous functions</title>
<titleabbrev>Misc.</titleabbrev>
@@ -859,10 +859,10 @@
signed and unsigned format codes.
</para>
<para>
- Also note that PHP internally stores integral values as signed
- values of a machine dependent size. If you give it an unsigned
- integral value too large to be stored that way it is converted to
- a double which often yields an undesired result.
+ Also note that PHP internally stores <type>integer</type> values as
+ signed values of a machine dependent size. If you give it an unsigned
+ integer value too large to be stored that way it is converted to a
+ <type>float</type> which often yields an undesired result.
</para>
</refsect1>
</refentry>
Index: phpdoc/en/functions/pgsql.xml
diff -u phpdoc/en/functions/pgsql.xml:1.45 phpdoc/en/functions/pgsql.xml:1.46
--- phpdoc/en/functions/pgsql.xml:1.45 Fri Sep 21 18:47:45 2001
+++ phpdoc/en/functions/pgsql.xml Fri Sep 21 19:21:07 2001
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
-<!-- $Revision: 1.45 $ -->
+<!-- $Revision: 1.46 $ -->
<reference id="ref.pgsql">
<title>PostgreSQL functions</title>
<titleabbrev>PostgreSQL</titleabbrev>
@@ -1244,9 +1244,12 @@
</para>
<para>
PostgreSQL has many built in types and only the basic ones are
- directly supported here. All forms of integer, boolean and oid
- types are returned as integer values. All forms of float, and
- real types are returned as double values. All other types,
+ directly supported here. All forms of <type>integer</type>,
+ <type>boolean</type> and void
+ <!-- FIXME: is that still true? PHP supports boolean&null now... -->
+ types are returned as <type>integer</type> values. All forms of float,
+ and
+ real types are returned as <type>float</type> values. All other types,
including arrays are returned as strings formatted in the same
default PostgreSQL manner that you would see in the
<command>psql</command> program.
Index: phpdoc/en/functions/sem.xml
diff -u phpdoc/en/functions/sem.xml:1.13 phpdoc/en/functions/sem.xml:1.14
--- phpdoc/en/functions/sem.xml:1.13 Fri Sep 21 18:47:46 2001
+++ phpdoc/en/functions/sem.xml Fri Sep 21 19:21:07 2001
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<reference id="ref.sem">
<title>Semaphore and Shared Memory Functions</title>
<titleabbrev>Semaphore</titleabbrev>
@@ -322,8 +322,8 @@
</funcsynopsis>
<para>
Inserts or updates a <parameter>variable</parameter> with a given
- <parameter>variable_key</parameter>. All variable-types (double,
- int, string, array) are supported.
+ <parameter>variable_key</parameter>. <link
+ linkend="language.types">All variable-types</link> are supported.
</para>
<note>
<simpara>
Index: phpdoc/en/functions/sesam.xml
diff -u phpdoc/en/functions/sesam.xml:1.10 phpdoc/en/functions/sesam.xml:1.11
--- phpdoc/en/functions/sesam.xml:1.10 Fri Sep 21 18:47:46 2001
+++ phpdoc/en/functions/sesam.xml Fri Sep 21 19:21:07 2001
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
<reference id="ref.sesam">
<title>SESAM database functions</title>
<titleabbrev>SESAM</titleabbrev>
@@ -418,19 +418,19 @@
<tbody>
<row>
<entry>SMALLINT, INTEGER</entry>
- <entry>"integer"</entry>
+ <entry><type>integer</type></entry>
</row>
<row>
<entry>NUMERIC, DECIMAL, FLOAT, REAL, DOUBLE</entry>
- <entry>"double"</entry>
+ <entry><type>float</type></entry>
</row>
<row>
<entry>DATE, TIME, TIMESTAMP</entry>
- <entry>"string"</entry>
+ <entry><type>string</type></entry>
</row>
<row>
<entry>VARCHAR, CHARACTER</entry>
- <entry>"string"</entry>
+ <entry><type>string</type></entry>
</row>
</tbody>
</tgroup>
@@ -1471,13 +1471,13 @@
returned value can be one of
<itemizedlist>
<listitem>
- <simpara>"integer"</simpara>
+ <simpara><type>integer</type></simpara>
</listitem>
<listitem>
- <simpara>"double"</simpara>
+ <simpara><type>float</type></simpara>
</listitem>
<listitem>
- <simpara>"string"</simpara>
+ <simpara><type>string</type></simpara>
</listitem>
</itemizedlist>
depending on the SQL type of the result. SESAM "multiple fields"
Index: phpdoc/en/functions/strings.xml
diff -u phpdoc/en/functions/strings.xml:1.113 phpdoc/en/functions/strings.xml:1.114
--- phpdoc/en/functions/strings.xml:1.113 Fri Sep 21 18:47:47 2001
+++ phpdoc/en/functions/strings.xml Fri Sep 21 19:21:07 2001
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
-<!-- $Revision: 1.113 $ -->
+<!-- $Revision: 1.114 $ -->
<reference id="ref.strings">
<title>String functions</title>
<titleabbrev>Strings</titleabbrev>
@@ -2126,7 +2126,7 @@
An optional <emphasis>precision specifier</emphasis> that says
how many decimal digits should be displayed for floating-point
numbers. This option has no effect for other types than
- double. (Another function useful for formatting numbers is
+ <type>float</type>. (Another function useful for formatting numbers is
<function>number_format</function>.)
</simpara>
</listitem>
@@ -2157,8 +2157,8 @@
integer, and presented as an unsigned decimal number.
</member>
<member>
- <literal>f</literal> - the argument is treated as a double,
- and presented as a floating-point number.
+ <literal>f</literal> - the argument is treated as a
+ <type>float</type>, and presented as a floating-point number.
</member>
<member>
<literal>o</literal> - the argument is treated as an