The decimal separator is changed when PHP-GTK is loaded

From: Date: Tue, 12 Apr 2005 17:42:29 +0000
Subject: The decimal separator is changed when PHP-GTK is loaded
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5753@lists.php.net to get a copy of this message
Hi everybody. This issue must be well known now - not to be considered as a bug but I didn't find any workaround yet. I'm developing a simple bank account application and I'm managing decimal figures containing a dot as the decimal separator. As soon as PHP-GTK is loaded, PHP no longer considers figures containing a dot as doubles, but as integers. I'm therefore loosing the decimal part of each figure (ex: the string "1.95" turns into 1 when I add figures together). Instead of the dot character, PHP considers the comma character as the new decimal separator. I live in France and as a matter of fact, the official decimal separator is the comma here :) I guess this localization issue can be tuned somewhere, but as a PHP and GTK newbie, I don't know where. Can someone help me ? Thanks in advance. -- Le papagone du 4ème.

« previous php.gtk.general (#5753) next »