$ord and decimals - 18/06/03 06:57 PM
$ord has a very weird way of handling decimals.
$ord(2.0) = 2.0th
$ord(2.1) = 2.1st
I've never heard someone say "two point first" or "two point onest" Seeing as how it is tenTH hundredTH thousandTH, etc. it would seem to be that $ord(2.1) should be 2.1th. Also shouldn't it really return the same thing for $ord(2) and $ord(2.0)? It seems it just tests whatever the last character is, but thats not always right.
$ord(2.0) = 2.0th
$ord(2.1) = 2.1st
I've never heard someone say "two point first" or "two point onest" Seeing as how it is tenTH hundredTH thousandTH, etc. it would seem to be that $ord(2.1) should be 2.1th. Also shouldn't it really return the same thing for $ord(2) and $ord(2.0)? It seems it just tests whatever the last character is, but thats not always right.