[Tutor] string rules for 'number'
Steven D'Aprano
steve at pearwood.info
Mon Oct 8 15:18:13 CEST 2012
On 08/10/12 11:51, Arnej Duranovic wrote:
> Alright guys, I appreciate all your help SO much. I know understand, as the
> gentleman above said " A string is a string is a string" doesn't matter
> what is in it and they are ordered the same way...BUT this is what was
> going through my head. Since letters are ordered in such a way that A is
> less than B, for example, I thought the same applied to numbers,
It does.
"1" comes before "2", just like "A" comes before "B".
And "12345" comes before "2", just like "Apple" comes before "B".
--
Steven
More information about the Tutor
mailing list