CVS update: php3/doc/chapters

From: Date: Mon, 07 Dec 1998 22:25:02 +0000
Subject: CVS update: php3/doc/chapters
Groups: php.dev 
Request: Send a blank email to php-dev+get-2705@lists.php.net to get a copy of this message
Date: Monday December 7, 1998 @ 17:24 Author: eschmid Update of /repository/php3/doc/chapters In directory asf:/u/temp/cvs-serv8842 Modified Files: lang-syntax.sgml Log Message: I have found, that some doubles are actually integers, can someone prove this and delete the ambigious lines in this two examples? Index: php3/doc/chapters/lang-syntax.sgml diff -c php3/doc/chapters/lang-syntax.sgml:1.23 php3/doc/chapters/lang-syntax.sgml:1.24 *** php3/doc/chapters/lang-syntax.sgml:1.23 Mon Nov 30 15:18:23 1998 --- php3/doc/chapters/lang-syntax.sgml Mon Dec 7 17:24:59 1998 *************** *** 464,470 **** $foo++; // $foo is the string "1" (ASCII 49) $foo += 1; // $foo is now an integer (2) $foo = $foo + 1.3; // $foo is now a double (3.3) ! $foo = 5 + "10 Little Piggies"; // $foo is a double (15) $foo = 5 + "10 Small Pigs"; // $foo is an integer (15) </programlisting></informalexample> --- 464,470 ---- $foo++; // $foo is the string "1" (ASCII 49) $foo += 1; // $foo is now an integer (2) $foo = $foo + 1.3; // $foo is now a double (3.3) ! $foo = 5 + "10 Little Piggies"; // $foo is a integer (15) $foo = 5 + "10 Small Pigs"; // $foo is an integer (15) </programlisting></informalexample> *************** *** 548,557 **** <informalexample><programlisting> $foo = 1 + "10.5"; // $foo is a double (11.5) $foo = 1 + "-1.3e3"; // $foo is a double (-1299) ! $foo = 1 + "bob-1.3e3"; // $foo is a double (1) $foo = 1 + "bob3"; // $foo is an integer (1) $foo = 1 + "10 Small Pigs"; // $foo is an integer (11) ! $foo = 1 + "10 Little Piggies"; // $foo is a double (11); the string contains 'e' </programlisting></informalexample> <simpara> --- 548,558 ---- <informalexample><programlisting> $foo = 1 + "10.5"; // $foo is a double (11.5) $foo = 1 + "-1.3e3"; // $foo is a double (-1299) ! $foo = 1 + "bob-1.3e3"; // $foo is an integer (1) $foo = 1 + "bob3"; // $foo is an integer (1) $foo = 1 + "10 Small Pigs"; // $foo is an integer (11) ! $foo = 1 + "10 Little Piggies"; // $foo is an integer (11); ! // the string contains 'e' </programlisting></informalexample> <simpara> -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2705) next »