lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 17 July 2013 22:49, Ralph Hempel <rhempel@bmts.com> wrote:
> What about math.type( 10 )   -> "integer"
>            math.type( 10.0 ) -> "float"
>            math.type( "foo" ) -> string
>            etc...
>
> Or just return nil for not numbers..

I like this, if only for the parallel with io.type().

Regards,
Matthew