oke.. i wrote a tiny php script to make this clear:
<?php
if (5.6 < 5.00504)
{
echo 'not what i would have expected<br />';
}
else
{
echo 'see, 5.00504 is smaller than 5.6 like i said<br />';
}
if (1.1 == 1.01)
{
echo 'not what i would have expected<br />';
}
else
{
echo 'see, they 1.1 is not equal to 1.01<br />';
}
?>
the result on my php (5.2.1) is: "see, 5.00504 is smaller than 5.6 like i said" and "see, they 1.1 is not equal to 1.01"
those are the facts that are gonna be used in the dep checker. though i will probably need to break the recursive loop quite a few time if those strange version numbers like 1.1b2 occur...
so jesse... how is your math going? ;)
2007/4/10, Jesse Keating <jkeating@xxxxxxxxxx>:
On Tuesday 10 April 2007 14:49:14 Mark wrote:
> Which is smaller: 5.6 or 5.00504?
>
>
> i would say that 5.00504 = smaller than 5.6 though i`m not sure if mysql
> thinks the same..
Actually, 5.6 is smaller. 5 and 5 is compared, then 00504 and 6 is compared.
00504 actually becomes 504 which is higher than just 6 and thus wins.
--
Jesse Keating
Release Engineer: Fedora
--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list
-- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list