Strange result from Ruby string to string less than comparison
So I have two strings '5' and '12'. In Ruby (ruby 2.0.0p598 (2014-11-13 revision 48408)) I want to do a comparison on these two to see which is less than the other. If I do '5' <= '12' I get false as a result. Why?
Aucun commentaire:
Enregistrer un commentaire