<br><br><div><span class="gmail_quote">On 4/10/07, <b class="gmail_sendername">Mark</b> <<a href="mailto:markg85@gmail.com">markg85@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
so.. is mysql yust removing out those first 2 zero`s?... i`m having a hard time believing that..<br>oke.. i wrote a tiny php script to make this clear:<br><br><?php<br><br>    if (5.6 < 5.00504)<br>    {<br>        echo 'not what i would have expected<br />';
<br>    }<br>    else<br>    {<br>        echo 'see, 5.00504 is smaller than 5.6 like i said<br />';<br>    }<br><br>    if (1.1 == 1.01)<br>    {<br>        echo 'not what i would have expected<br />';
<br>    }<br>    else<br>    {<br>        echo 'see, they 1.1 is not equal to 1.01<br />';<br>    }<br><br>?></blockquote><div><br><br>it was not about 1.1 and 1.01 but 1.10 should be bigger than 1.1 (which is the same if you do == )
<br>this can be solved if you split the version string and compare each part (explode() )<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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"<br>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...
<br>so jesse... how is your math going? ;)<br><br><div><span class="gmail_quote">2007/4/10, Jesse Keating <<a href="mailto:jkeating@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jkeating@redhat.com
</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_111dd16ef2a56350_1">
On Tuesday 10 April 2007 14:49:14 Mark wrote:<br>> Which is smaller: 5.6 or 5.00504?<br>><br>><br>> i would say that 5.00504 = smaller than 5.6 though i`m not sure if mysql<br>> thinks the same..<br><br>Actually, 
5.6 is smaller.  5 and 5 is compared, then 00504 and 6 is compared.<br>00504 actually becomes 504 which is higher than just 6 and thus wins.<br><br>--<br>Jesse Keating<br>Release Engineer: Fedora<br><br></span></div><span class="q">
--<br>fedora-devel-list mailing list
<br><a href="mailto:fedora-devel-list@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fedora-devel-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-devel-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://www.redhat.com/mailman/listinfo/fedora-devel-list</a><br><br>
</span></blockquote></div><br>
<br>--<br>fedora-devel-list mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fedora-devel-list@redhat.com">fedora-devel-list@redhat.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/fedora-devel-list" target="_blank">
https://www.redhat.com/mailman/listinfo/fedora-devel-list</a><br></blockquote></div><br>