From c16899ed4307f3c2fee589755795af98fb8fc293 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Fri, 21 Sep 2001 23:21:07 +0000 Subject: [PATCH] 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 --- functions/cpdf.xml | 6 +++--- functions/misc.xml | 10 +++++----- functions/pgsql.xml | 11 +++++++---- functions/sem.xml | 6 +++--- functions/sesam.xml | 16 ++++++++-------- functions/strings.xml | 8 ++++---- 6 files changed, 30 insertions(+), 27 deletions(-) diff --git a/functions/cpdf.xml b/functions/cpdf.xml index 626511c758..fddcb32ead 100644 --- a/functions/cpdf.xml +++ b/functions/cpdf.xml @@ -1,5 +1,5 @@ - + ClibPDF functions ClibPDF @@ -951,7 +951,7 @@ cpdf_end_text($pdf) float height float width - double unit + float unit @@ -2074,7 +2074,7 @@ cpdf_restore($pdf) float y-coor int mode - double orientation + float orientation int alignmode diff --git a/functions/misc.xml b/functions/misc.xml index 73ec11df0b..e9e40a76fd 100644 --- a/functions/misc.xml +++ b/functions/misc.xml @@ -1,5 +1,5 @@ - + Miscellaneous functions Misc. @@ -859,10 +859,10 @@ $binarydata = pack ("nvc*", 0x1234, 0x5678, 65, 66); signed and unsigned format codes. - 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 integer 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 + float which often yields an undesired result. diff --git a/functions/pgsql.xml b/functions/pgsql.xml index 65a4876bf8..834351be94 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -1244,9 +1244,12 @@ for ($i=0; $i<$num; $i++) { 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 integer, + boolean and void + + types are returned as integer values. All forms of float, + and + real types are returned as float values. All other types, including arrays are returned as strings formatted in the same default PostgreSQL manner that you would see in the psql program. diff --git a/functions/sem.xml b/functions/sem.xml index 9ed4206bee..f042543979 100644 --- a/functions/sem.xml +++ b/functions/sem.xml @@ -1,5 +1,5 @@ - + Semaphore and Shared Memory Functions Semaphore @@ -322,8 +322,8 @@ Inserts or updates a variable with a given - variable_key. All variable-types (double, - int, string, array) are supported. + variable_key. All variable-types are supported. diff --git a/functions/sesam.xml b/functions/sesam.xml index 140a45d1f9..1b285f8403 100644 --- a/functions/sesam.xml +++ b/functions/sesam.xml @@ -1,5 +1,5 @@ - + SESAM database functions SESAM @@ -418,19 +418,19 @@ php3_sesam_messagecatalog $.SYSMES.SESAM-SQL.030 SMALLINT, INTEGER - "integer" + integer NUMERIC, DECIMAL, FLOAT, REAL, DOUBLE - "double" + float DATE, TIME, TIMESTAMP - "string" + string VARCHAR, CHARACTER - "string" + string @@ -1471,13 +1471,13 @@ if (!sesam_execimm ($stmt)) returned value can be one of - "integer" + integer - "double" + float - "string" + string depending on the SQL type of the result. SESAM "multiple fields" diff --git a/functions/strings.xml b/functions/strings.xml index bb964c05ef..96026b86ca 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1,5 +1,5 @@ - + String functions Strings @@ -2126,7 +2126,7 @@ soundex("Lukasiewicz") == soundex("Lissajous") == 'L222'; An optional precision specifier 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 + float. (Another function useful for formatting numbers is number_format.) @@ -2157,8 +2157,8 @@ soundex("Lukasiewicz") == soundex("Lissajous") == 'L222'; integer, and presented as an unsigned decimal number. - f - the argument is treated as a double, - and presented as a floating-point number. + f - the argument is treated as a + float, and presented as a floating-point number. o - the argument is treated as an