lua-users home
lua-l archive

Re: How to format a number with thousandth separators?

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


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/

AltStyle によって変換されたページ (->オリジナル) /