lua-users home
lua-l archive

why 0.1+0.2-0.3~=0

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


in my program and on the website http://www.lua.org/cgi-bin/demo
tmp=0.1+0.2-0.3
print(tmp)
gives
5.5511151231258e-17

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