Fix more double->float (en passant a very little bit of xml-improvement)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@57997 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jeroen van Wolffelaar 2001-09-21 23:21:07 +00:00
parent 330651585d
commit c16899ed43
6 changed files with 30 additions and 27 deletions

View file

@ -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 @@ cpdf_end_text($pdf)
<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 @@ cpdf_restore($pdf)
<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>

View file

@ -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 @@ $binarydata = pack ("nvc*", 0x1234, 0x5678, 65, 66);
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>

View file

@ -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 @@ for ($i=0; $i&lt;$num; $i++) {
</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.

View file

@ -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>

View file

@ -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 @@ php3_sesam_messagecatalog $.SYSMES.SESAM-SQL.030
<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 @@ if (!sesam_execimm ($stmt))
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"

View file

@ -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 @@ soundex("Lukasiewicz") == soundex("Lissajous") == 'L222';
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 @@ soundex("Lukasiewicz") == soundex("Lissajous") == 'L222';
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