diff --git a/functions/array.xml b/functions/array.xml index 6117172406..df77b93467 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1,5 +1,5 @@ - + Array Functions Arrays @@ -1031,7 +1031,7 @@ array_push ($stack, "+", 3); <function>array_rand</function> example -srand ((double) microtime() * 10000000); +srand ((float) microtime() * 10000000); $input = array ("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand ($input, 2); print $input[$rand_keys[0]]."\n"; @@ -2922,7 +2922,7 @@ while (list ($key, $val) = each ($fruits)) { <function>shuffle</function> example $numbers = range (1,20); -srand ((double)microtime()*1000000); +srand ((float)microtime()*1000000); shuffle ($numbers); while (list (, $number) = each ($numbers)) { echo "$number "; diff --git a/functions/cpdf.xml b/functions/cpdf.xml index 03ffd1c204..da0af966bf 100644 --- a/functions/cpdf.xml +++ b/functions/cpdf.xml @@ -1,5 +1,5 @@ - + ClibPDF functions ClibPDF @@ -192,10 +192,10 @@ cpdf_close($pdf); void cpdf_add_annotation int pdf document - double llx - double lly - double urx - double ury + float llx + float lly + float urx + float ury string title string content int @@ -267,11 +267,11 @@ cpdf_close($cpdf); void cpdf_arc int pdf document - double x-coor - double y-coor - double radius - double start - double end + float x-coor + float y-coor + float radius + float start + float end int mode @@ -340,9 +340,9 @@ cpdf_end_text($pdf) void cpdf_circle int pdf document - double x-coor - double y-coor - double radius + float x-coor + float y-coor + float radius int mode @@ -522,12 +522,12 @@ cpdf_end_text($pdf) void cpdf_curveto int pdf document - double x1 - double y1 - double x2 - double y2 - double x3 - double y3 + float x1 + float y1 + float x2 + float y2 + float x3 + float y3 int mode @@ -739,13 +739,13 @@ cpdf_end_text($pdf) int cpdf_import_jpeg int pdf document string file name - double x-coor - double y-coor - double angle - double width - double height - double x-scale - double y-scale + float x-coor + float y-coor + float angle + float width + float height + float x-scale + float y-scale int mode @@ -782,8 +782,8 @@ cpdf_end_text($pdf) void cpdf_lineto int pdf document - double x-coor - double y-coor + float x-coor + float y-coor int mode @@ -817,8 +817,8 @@ cpdf_end_text($pdf) void cpdf_moveto int pdf document - double x-coor - double y-coor + float x-coor + float y-coor int mode @@ -948,8 +948,8 @@ cpdf_end_text($pdf) int pdf document int page number int orientation - double height - double width + float height + float width double unit @@ -985,11 +985,11 @@ cpdf_end_text($pdf) void cpdf_place_inline_image int pdf document int image - double x-coor - double y-coor - double angle - double width - double height + float x-coor + float y-coor + float angle + float width + float height int mode @@ -1025,10 +1025,10 @@ cpdf_end_text($pdf) void cpdf_rect int pdf document - double x-coor - double y-coor - double width - double height + float x-coor + float y-coor + float width + float height int mode @@ -1094,8 +1094,8 @@ cpdf_restore($pdf) void cpdf_rlineto int pdf document - double x-coor - double y-coor + float x-coor + float y-coor int mode @@ -1129,8 +1129,8 @@ cpdf_restore($pdf) void cpdf_rmoveto int pdf document - double x-coor - double y-coor + float x-coor + float y-coor int mode @@ -1162,7 +1162,7 @@ cpdf_restore($pdf) void cpdf_rotate int pdf document - double angle + float angle @@ -1237,8 +1237,8 @@ cpdf_restore($pdf) void cpdf_scale int pdf document - double x-scale - double y-scale + float x-scale + float y-scale @@ -1259,7 +1259,7 @@ cpdf_restore($pdf) void cpdf_set_char_spacing int pdf document - double space + float space @@ -1335,7 +1335,7 @@ cpdf_restore($pdf) void cpdf_set_font int pdf document string font name - double size + float size string encoding @@ -1368,7 +1368,7 @@ cpdf_restore($pdf) void cpdf_set_horiz_scaling int pdf document - double scale + float scale @@ -1414,7 +1414,7 @@ cpdf_restore($pdf) void cpdf_set leading int pdf document - double distance + float distance @@ -1440,7 +1440,7 @@ cpdf_restore($pdf) void cpdf_set_page_animation int pdf document int transition - double duration + float duration @@ -1536,8 +1536,8 @@ cpdf_restore($pdf) void cpdf_set_text_pos int pdf document - double x-coor - double y-coor + float x-coor + float y-coor int mode @@ -1598,7 +1598,7 @@ cpdf_restore($pdf) void cpdf_set_text_rise int pdf document - double value + float value @@ -1644,7 +1644,7 @@ cpdf_restore($pdf) void cpdf_set_word_spacing int pdf document - double space + float space @@ -1669,8 +1669,8 @@ cpdf_restore($pdf) void cpdf_setdash int pdf document - double white - double black + float white + float black @@ -1693,7 +1693,7 @@ cpdf_restore($pdf) void cpdf_setflat int pdf document - double value + float value @@ -1714,7 +1714,7 @@ cpdf_restore($pdf) void cpdf_setgray int pdf document - double gray value + float gray value @@ -1739,7 +1739,7 @@ cpdf_restore($pdf) void cpdf_setgray_fill int pdf document - double value + float value @@ -1763,7 +1763,7 @@ cpdf_restore($pdf) void cpdf_setgray_stroke int pdf document - double gray value + float gray value @@ -1831,7 +1831,7 @@ cpdf_restore($pdf) void cpdf_setlinewidth int pdf document - double width + float width @@ -1852,7 +1852,7 @@ cpdf_restore($pdf) void cpdf_setmiterlimit int pdf document - double value + float value @@ -1873,9 +1873,9 @@ cpdf_restore($pdf) void cpdf_setrgbcolor int pdf document - double red value - double green value - double blue value + float red value + float green value + float blue value @@ -1900,9 +1900,9 @@ cpdf_restore($pdf) void cpdf_setrgbcolor_fill int pdf document - double red value - double green value - double blue value + float red value + float green value + float blue value @@ -1927,9 +1927,9 @@ cpdf_restore($pdf) void cpdf_setrgbcolor_stroke int pdf document - double red value - double green value - double blue value + float red value + float green value + float blue value @@ -1981,8 +1981,8 @@ cpdf_restore($pdf) void cpdf_show_xy int pdf document string text - double x-coor - double y-coor + float x-coor + float y-coor int mode @@ -2018,7 +2018,7 @@ cpdf_restore($pdf) Description - double cpdf_stringwidth + float cpdf_stringwidth int pdf document string text @@ -2070,8 +2070,8 @@ cpdf_restore($pdf) void cpdf_text int pdf document string text - double x-coor - double y-coor + float x-coor + float y-coor int mode double orientation @@ -2116,8 +2116,8 @@ cpdf_restore($pdf) void cpdf_translate int pdf document - double x-coor - double y-coor + float x-coor + float y-coor int mode diff --git a/functions/image.xml b/functions/image.xml index 7da5ffc79f..159b786b96 100644 --- a/functions/image.xml +++ b/functions/image.xml @@ -1,5 +1,5 @@ - + Image functions Image @@ -681,10 +681,10 @@ ImageColorDeAllocate($im, $white); int im - double + float inputgamma - double + float outputgamma @@ -2190,7 +2190,7 @@ ImageDestroy ($im); int font_index - double + float extend @@ -2220,7 +2220,7 @@ ImageDestroy ($im); int font_index - double + float slant diff --git a/functions/math.xml b/functions/math.xml index 1975acc367..e61035c03e 100644 --- a/functions/math.xml +++ b/functions/math.xml @@ -1,5 +1,5 @@ - + Mathematical Functions Math @@ -797,7 +797,7 @@ var_dump(hexdec("a0")); // seed with microseconds function make_seed() { list($usec,$sec) = explode(" ", microtime()); - return ((double)$sec+(double)$usec) * 100000; + return ((float)$sec+(float)$usec) * 100000; } mt_srand(make_seed()); $randval = mt_rand(); @@ -1230,7 +1230,7 @@ $foo = round(1241757, -3); // $foo == 1242000 // seed with microseconds function make_seed() { list($usec,$sec) = explode(" ", microtime()); - return ((double)$sec+(double)$usec) * 100000; + return ((float)$sec+(float)$usec) * 100000; } srand(make_seed()); $randval = rand(); diff --git a/functions/ming.xml b/functions/ming.xml index d0bdf2e30c..e439a37219 100755 --- a/functions/ming.xml +++ b/functions/ming.xml @@ -1,5 +1,5 @@ - + Ming functions for Flash Ming (flash) @@ -669,7 +669,7 @@ header('Content-type: application/x-shockwave-flash'); void swfdisplayitem->rotateto - double degrees + float degrees &warn.experimental.func; @@ -784,7 +784,7 @@ header('Content-type: application/x-shockwave-flash'); void swfdisplayitem->rotate - double ddegrees + float ddegrees &warn.experimental.func; @@ -815,7 +815,7 @@ header('Content-type: application/x-shockwave-flash'); void swfdisplayitem->skewxto - double degrees + float degrees &warn.experimental.func; @@ -850,7 +850,7 @@ header('Content-type: application/x-shockwave-flash'); void swfdisplayitem->skewx - double ddegrees + float ddegrees &warn.experimental.func; @@ -883,7 +883,7 @@ header('Content-type: application/x-shockwave-flash'); void swfdisplayitem->skewyto - double degrees + float degrees &warn.experimental.func; @@ -918,7 +918,7 @@ header('Content-type: application/x-shockwave-flash'); void swfdisplayitem->skewy - double ddegrees + float ddegrees &warn.experimental.func; @@ -951,7 +951,7 @@ header('Content-type: application/x-shockwave-flash'); void swfdisplayitem->setdepth - double depth + float depth &warn.experimental.func; @@ -1040,7 +1040,7 @@ header('Content-type: application/x-shockwave-flash'); void swfdisplayitem->setratio - double ratio + float ratio &warn.experimental.func; @@ -1864,7 +1864,7 @@ header('Content-type: application/x-shockwave-flash'); void swfgradient->addentry - double ratio + float ratio int red int green int blue @@ -2128,7 +2128,7 @@ header('Content-type: application/x-shockwave-flash'); void swffill->rotateto - double degrees + float degrees &warn.experimental.func; @@ -2149,7 +2149,7 @@ header('Content-type: application/x-shockwave-flash'); void swffill->skewxto - double x + float x &warn.experimental.func; @@ -2171,7 +2171,7 @@ header('Content-type: application/x-shockwave-flash'); void swffill->skewyto - double y + float y &warn.experimental.func; @@ -2422,7 +2422,7 @@ header('Content-type: application/x-shockwave-flash'); void swftext->setspacing - double spacing + float spacing &warn.experimental.func; diff --git a/functions/network.xml b/functions/network.xml index 9e9ee600d2..5ccf449165 100644 --- a/functions/network.xml +++ b/functions/network.xml @@ -1,5 +1,5 @@ - + Network Functions Network @@ -164,7 +164,7 @@ string errstr - double + float timeout diff --git a/functions/pdf.xml b/functions/pdf.xml index 4569d797d5..aae5fd7ce7 100644 --- a/functions/pdf.xml +++ b/functions/pdf.xml @@ -1,5 +1,5 @@ - + PDF functions PDF @@ -469,10 +469,10 @@ pdf_delete($pdf); int pdf_add_launchlink int pdf object - double llx - double lly - double urx - double ury + float llx + float lly + float urx + float ury string filename @@ -493,10 +493,10 @@ pdf_delete($pdf); int pdf_add_locallink int pdf object - double llx - double lly - double urx - double ury + float llx + float lly + float urx + float ury int page string dest @@ -518,10 +518,10 @@ pdf_delete($pdf); int pdf_add_note int pdf object - double llx - double lly - double urx - double ury + float llx + float lly + float urx + float ury string contents string title string icon @@ -562,10 +562,10 @@ pdf_delete($pdf); int pdf_add_pdflink int pdf object - double llx - double lly - double urx - double ury + float llx + float lly + float urx + float ury string filename int page string dest @@ -608,10 +608,10 @@ pdf_delete($pdf); int pdf_add_weblink int pdf object - double llx - double lly - double urx - double ury + float llx + float lly + float urx + float ury string url @@ -686,10 +686,10 @@ pdf_delete($pdf); int pdf_attach_file int pdf object - double llx - double lly - double urx - double ury + float llx + float lly + float urx + float ury string filename string description string author @@ -715,8 +715,8 @@ pdf_delete($pdf); void pdf_begin_page int pdf object - double width - double height + float width + float height @@ -736,10 +736,10 @@ pdf_delete($pdf); int pdf_begin_pattern int pdf object - double width - double height - double xstep - double ystep + float width + float height + float xstep + float ystep int painttype @@ -766,8 +766,8 @@ pdf_delete($pdf); void pdf_begin_template int pdf object - double width - double height + float width + float height @@ -787,9 +787,9 @@ pdf_delete($pdf); void pdf_circle int pdf object - double x - double y - double r + float x + float y + float r @@ -969,12 +969,12 @@ pdf_delete($pdf); void pdf_concat int pdf object - double a - double b - double c - double d - double e - double f + float a + float b + float c + float d + float e + float f @@ -1015,12 +1015,12 @@ pdf_delete($pdf); void pdf_curveto int pdf object - double x1 - double y1 - double x2 - double y2 - double x3 - double y3 + float x1 + float y1 + float x2 + float y2 + float x3 + float y3 @@ -1323,7 +1323,7 @@ if ($font) { string pdf_get_parameter int pdf object string key - double modifier + float modifier @@ -1387,10 +1387,10 @@ if ($font) { Description - double pdf_get_value + float pdf_get_value int pdf object string key - double modifier + float modifier @@ -1429,8 +1429,8 @@ if ($font) { void pdf_lineto int pdf object - double x - double y + float x + float y @@ -1471,8 +1471,8 @@ if ($font) { void pdf_moveto int pdf object - double x - double y + float x + float y @@ -1831,9 +1831,9 @@ pdf_close_image($pdf, $pim); void pdf_place_image int pdf object int image - double x - double y - double scale + float x + float y + float scale @@ -1855,10 +1855,10 @@ pdf_close_image($pdf, $pim); void pdf_place_pdi_page int pdf object int page - double x - double y - double sx - double sy + float x + float y + float sx + float sy @@ -1879,10 +1879,10 @@ pdf_close_image($pdf, $pim); void pdf_rect int pdf object - double x - double y - double width - double height + float x + float y + float width + float height @@ -1921,7 +1921,7 @@ pdf_close_image($pdf, $pim); void pdf_rotate int pdf object - double phi + float phi @@ -1960,8 +1960,8 @@ pdf_close_image($pdf, $pim); void pdf_scale int pdf object - double x-scale - double y-scale + float x-scale + float y-scale @@ -1983,10 +1983,10 @@ pdf_close_image($pdf, $pim); int pdf object string type string colorspace - double c1 - double c2 - double c3 - double c4 + float c1 + float c2 + float c3 + float c4 @@ -2030,8 +2030,8 @@ pdf_close_image($pdf, $pim); void pdf_setdash int pdf object - double b - double w + float b + float w @@ -2052,7 +2052,7 @@ pdf_close_image($pdf, $pim); void pdf_setflat int pdf object - double flatness + float flatness @@ -2073,7 +2073,7 @@ pdf_close_image($pdf, $pim); void pdf_setfont int pdf object int font - double size + float size @@ -2098,7 +2098,7 @@ pdf_close_image($pdf, $pim); void pdf_setgray int pdf object - double gray + float gray @@ -2123,7 +2123,7 @@ pdf_close_image($pdf, $pim); void pdf_setgray_fill int pdf object - double gray + float gray @@ -2148,7 +2148,7 @@ pdf_close_image($pdf, $pim); void pdf_setgray_stroke int pdf object - double gray + float gray @@ -2213,7 +2213,7 @@ pdf_close_image($pdf, $pim); void pdf_setlinewidth int pdf object - double width + float width @@ -2233,12 +2233,12 @@ pdf_close_image($pdf, $pim); void pdf_setmatrix int pdf object - double a - double b - double c - double d - double e - double f + float a + float b + float c + float d + float e + float f @@ -2258,7 +2258,7 @@ pdf_close_image($pdf, $pim); void pdf_setmiterlimit int pdf object - double miter + float miter @@ -2278,7 +2278,7 @@ pdf_close_image($pdf, $pim); void pdf_setpolydash int pdf object - double *dasharray + float *dasharray @@ -2298,9 +2298,9 @@ pdf_close_image($pdf, $pim); void pdf_setrgbcolor int pdf object - double red value - double green value - double blue value + float red value + float green value + float blue value @@ -2325,9 +2325,9 @@ pdf_close_image($pdf, $pim); void pdf_setrgbcolor_fill int pdf object - double red value - double green value - double blue value + float red value + float green value + float blue value @@ -2352,9 +2352,9 @@ pdf_close_image($pdf, $pim); void pdf_setrgbcolor_stroke int pdf object - double red value - double green value - double blue value + float red value + float green value + float blue value @@ -2379,9 +2379,9 @@ pdf_close_image($pdf, $pim); void pdf_set_border_color int pdf object - double red - double green - double blue + float red + float green + float blue @@ -2401,8 +2401,8 @@ pdf_close_image($pdf, $pim); void pdf_set_border_dash int pdf object - double black - double white + float black + float white @@ -2424,7 +2424,7 @@ pdf_close_image($pdf, $pim); void pdf_set_border_style int pdf object string style - double width + float width @@ -2495,7 +2495,7 @@ pdf_close_image($pdf, $pim); void pdf_set_horiz_scaling int pdf object - double scale + float scale @@ -2578,8 +2578,8 @@ pdf_close_image($pdf, $pim); void pdf_set_text_pos int pdf object - double x - double y + float x + float y @@ -2645,7 +2645,7 @@ pdf_close_image($pdf, $pim); void pdf_set_value int pdf object string key - double value + float value @@ -2702,10 +2702,10 @@ pdf_close_image($pdf, $pim); int pdf_show_boxed int pdf object string text - double left - double top - double width - double height + float left + float top + float width + float height string hmode string feature @@ -2738,8 +2738,8 @@ pdf_close_image($pdf, $pim); void pdf_show_xy int pdf object string text - double x - double y + float x + float y @@ -2759,8 +2759,8 @@ pdf_close_image($pdf, $pim); void pdf_skew int pdf object - double alpha - double beta + float alpha + float beta @@ -2779,11 +2779,11 @@ pdf_close_image($pdf, $pim); Description - double pdf_stringwidth + float pdf_stringwidth int pdf object string text int font - double size + float size @@ -2838,8 +2838,8 @@ pdf_close_image($pdf, $pim); void pdf_translate int pdf object - double tx - double ty + float tx + float ty diff --git a/functions/strings.xml b/functions/strings.xml index 21fd2c0edd..39a20268ed 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1,5 +1,5 @@ - + String functions Strings @@ -1996,7 +1996,7 @@ echo "<author id='$id'> int similar_text string first string second - double + float percent diff --git a/functions/swf.xml b/functions/swf.xml index d258bd4dd0..45c22f25c9 100644 --- a/functions/swf.xml +++ b/functions/swf.xml @@ -1,5 +1,5 @@ - + Shockwave Flash functions SWF @@ -1946,16 +1946,16 @@ swf_endButton (); void swf_viewport - double + float xmin - double + float xmax - double + float ymin - double + float ymax @@ -1985,22 +1985,22 @@ swf_endButton (); void swf_ortho - double + float xmin - double + float xmax - double + float ymin - double + float ymax - double + float zmin - double + float zmax @@ -2027,16 +2027,16 @@ swf_endButton (); void swf_ortho2 - double + float xmin - double + float xmax - double + float ymin - double + float ymax @@ -2065,16 +2065,16 @@ swf_endButton (); void swf_perspective - double + float fovy - double + float aspect - double + float near - double + float far @@ -2113,16 +2113,16 @@ swf_endButton (); void swf_polarview - double + float dist - double + float azimuth - double + float incidence - double + float twist @@ -2157,25 +2157,25 @@ swf_endButton (); void swf_lookat - double + float view_x - double + float view_y - double + float view_z - double + float reference_x - double + float reference_y - double + float reference_z - double + float twist @@ -2254,13 +2254,13 @@ swf_endButton (); void swf_scale - double + float x - double + float y - double + float z @@ -2287,13 +2287,13 @@ swf_endButton (); void swf_translate - double + float x - double + float y - double + float z @@ -2319,7 +2319,7 @@ swf_endButton (); void swf_rotate - double + float angle string diff --git a/functions/var.xml b/functions/var.xml index 2d2fac1ae2..8dc718df03 100644 --- a/functions/var.xml +++ b/functions/var.xml @@ -1,5 +1,5 @@ - + Variable Functions Variables @@ -13,7 +13,7 @@ Description - double doubleval + float doubleval mixed var @@ -136,7 +136,7 @@ if (!isset($var)) { // evaluates false "integer" - "double" + "float" "string" @@ -171,7 +171,7 @@ if (!isset($var)) { // evaluates false settype, is_array, is_bool, - is_double, + is_float, is_integer, is_null, is_numeric, @@ -330,7 +330,7 @@ echo get_resource_type($doc->doc)."\n"; otherwise. - See also is_double, + See also is_float, is_int, is_integer, @@ -367,7 +367,6 @@ echo get_resource_type($doc->doc)."\n"; See also is_array, - is_double, is_float, is_int, is_integer, @@ -393,8 +392,7 @@ echo get_resource_type($doc->doc)."\n"; - Returns &true; if var is a double, - &false; otherwise. + This function is a deprecate alias for is_float. See also is_array, @@ -424,10 +422,11 @@ echo get_resource_type($doc->doc)."\n"; - This function is an alias for is_double. + Returns &true; if var is a float, + &false; otherwise. - See also is_double, + See also is_bool, is_real, is_int, @@ -458,7 +457,6 @@ echo get_resource_type($doc->doc)."\n"; See also is_bool, - is_double, is_float, is_integer, is_string, @@ -489,7 +487,6 @@ echo get_resource_type($doc->doc)."\n"; See also is_bool, - is_double, is_float, is_int, is_string, @@ -521,7 +518,6 @@ echo get_resource_type($doc->doc)."\n"; See also is_bool, - is_double, is_float, is_int, is_real, @@ -554,7 +550,6 @@ echo get_resource_type($doc->doc)."\n"; See also is_bool, - is_double, is_numeric, is_float, is_int, @@ -589,7 +584,6 @@ echo get_resource_type($doc->doc)."\n"; See also is_bool, - is_double, is_float, is_int, is_real, @@ -624,7 +618,6 @@ echo get_resource_type($doc->doc)."\n"; is_int, is_integer, is_float, - is_double, is_real, is_string, and is_array. @@ -654,7 +647,6 @@ echo get_resource_type($doc->doc)."\n"; is_int, is_integer, is_float, - is_double, is_object, is_string, and is_array. @@ -767,7 +759,6 @@ show_var($proteins) See also is_bool, - is_double, is_numeric, is_float, is_int, @@ -804,7 +795,6 @@ show_var($proteins) is_int, is_integer, is_float, - is_double, is_real, is_object, and is_array. @@ -873,7 +863,7 @@ print isset ($foo); // FALSE This function displays information about the values of variables in a way that's readable by humans. If given a string, - integer or double, the value itself will be + integer or float, the value itself will be printed. If given an array, values will be presented in a format that shows keys and elements. Similar notation is used for objects. @@ -1098,7 +1088,7 @@ settype($bar, "string"); // $bar is now "1" (string) unserialize takes a single serialized variable (see serialize) and converts it back into a PHP value. The converted value is returned, and can - be an integer, double, + be an integer, float, string, array or object. If an object was serialized, its methods are not preserved in the returned value.