3.2*2 is 9.6 ... or maybe it isn't?
Mark Dickinson
dickinsm at gmail.com
Thu Jun 25 14:35:12 EDT 2009
On Jun 25, 7:04 pm, Bojan Sudarevic <bo... at sudarevic.com> wrote:
> The first thing I typed into it was 3.2*3 (don't ask why I typed *that*,
> I don*t know, I just did). And the answer wasn't 9.6.
It looks like it's false in PHP too, by the way (not
that I know any PHP, so I could well be missing
something...)
bernoulli:py3k dickinsm$ php -a
Interactive mode enabled
<?
$a = 3.2*3;
$b = 9.6;
var_dump($a);
float(9.6)
var_dump($b);
float(9.6)
var_dump($a == $b);
bool(false)
Mark
More information about the Python-list
mailing list