[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Patch to remove auto-casting between numbers and strings
- From: "Paul Hudson" <phudson@...>
- Date: Sat, 9 Sep 2006 12:05:03 +0100
> I've always wanted a "(%d+)" caption to give me a number, not a string.
It would sometimes be convenient, agreed. But the string may not always fit
as a number. For instance, my programs have to deal with mobile phone IMEI
numbers - 15 digits, and a loss of precision would be a real problem with
You also lose any leading zeros.
[mailto:firstname.lastname@example.org] On Behalf Of Asko Kauppi
Sent: 09 September 2006 09:30
To: Lua list
Subject: Re: Patch to remove auto-casting between numbers and strings
Perhaps having to do with this:
> _,_,a= string.find( "100", "(%d+)" )
I've always wanted a "(%d+)" caption to give me a number, not a string.
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 08/09/2006