[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to format a number with thousandth separators?
- From: PA <petite.abeille@...>
- Date: Thu, 26 Jan 2006 06:57:01 +0100
On Jan 26, 2006, at 04:01, Zakaria wrote:
Is that lua?
I would hope so :)
what version?
In 5.1, you can use the colon notation with strings. aString:reverse()
is equivalent to string.reverse( aString ). The string package being
the metatable of strings.
I wish the same was true for numbers and the math package so one could
write aNumber:floor() instead of math.floor( aNumber )...
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/