lua-users home
lua-l archive

Re: 1e50 == 1?

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


Matthew Paul Del Buono writes:
> print("\""..string.rep("1+", 1e50).."\"");
> Output: ""
> ...
> Again this problem really shouldn't be faced in the real world...
$ lua
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
> =("a"):rep(2^32+2)
aa

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