|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-17 14:18 UTC] kryza at medialogic dot it
[2002-10-17 17:06 UTC] sniper@php.net
[2002-11-10 18:23 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 14:00:01 2025 UTC |
PHP 4.2.3 compiled with Sun JDK 1.3.1 Script like this: $var_a="10.10"; echo "A: "; var_dump($var_a); $var_b=(float)$var_a; echo "A: "; var_dump($var_b); Normaly gives this result: A: string(5) "10.10" B: float(10.1) But when in the same file we create java object: $var_a="10.10"; echo "A: "; var_dump($var_a); $var_b=(float)$var_a; echo "A: "; var_dump($var_b); $system = new Java('java.lang.System'); Output can be: A: string(5) "10.10" B: float(10) or like before: A: string(5) "10.10" B: float(10.1) Strange. Grzegorz Kryza