lua-users home
lua-l archive

Re: Bug with math.log

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


* On 2014年03月04日 12:43:25 +0100, Dio Darkclainer wrote:
 
> Hello all!
> Code:
> 
> for i=1,20 do
> if math.floor(math.log(2^i,2)) ~= i then
> print(i)
> end
> end
> 
> will be output
> 3
> 6
> 12
> 13
I'm not able to reproduce. What is your platform and compiler?

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