Integers with leading zeroes

Grant Edwards invalid at invalid.invalid
Wed Jul 22 17:20:24 CEST 2015


On 2015-07-22, Steven D'Aprano <steve at pearwood.info> wrote:
> On Wed, 22 Jul 2015 11:51 pm, Grant Edwards wrote:
>
>> On 2015-07-22, Ben Finney <ben+python at benfinney.id.au> wrote:
>>> Laura Creighton <lac at openend.se> writes:
>>>
>>>> The biggest use I have for decimal numbers that begin with 0 is in
>>>> credit card numbers, account numbers and the like where the first
>>>> check you do is 'does this thing have the correct number of digits'.
>>>
>>> The following are examples of types from the real world that people
>>> think of, and casually discuss, as “numbers”.
>>>
>>> * Postal code
>>> * Credit card number
>>> * Telephone number
>>> * Car registration plate number
>>> * Personal Identification Number (PIN)
>> 
>> Those are all strings.  Not numbers.
>
> I'm pretty sure that was Ben's point :-)

Ah yes, now I see it was.

-- 
Grant Edwards               grant.b.edwards        Yow! HELLO, everybody,
                                  at               I'm a HUMAN!!
                              gmail.com            


More information about the Python-list mailing list