[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: number bases
- From: "Brett Bibby" <research@...>
- Date: Fri, 31 Oct 2003 17:13:15 +0800
Doh! How did I miss that in the manual? Just what I was looking for.
Thanks.
----- Original Message -----
From: "Philippe Lhoste" <PhiLho@gmx.net>
To: <lua@bazar2.conectiva.com.br>
Sent: Friday, October 31, 2003 4:25 PM
Subject: Re: number bases
> > Is there any way to specify numeric constants in any base other than
10?
> > Specifically I want to specify numbers in hexidecimal format such as
> > 0x00a012b3. Is there any way to do this?
>
> Take a look a the tonumber function, it already have what you need.
Just
> drop the prefix before calling the
> function (but perhaps use it to compute the base).
>
> Regards.
>
> --
> --=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
> Philippe Lhoste (Paris -- France)
> Professional programmer and amateur artist
> http://jove.prohosting.com/~philho/
> --=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
>
> NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
> Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
>
> Jetzt kostenlos anmelden unter http://www.gmx.net
>
> +++ GMX - die erste Adresse für Mail, Message, More! +++