Issue with a calculation in Lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Issue with a calculation in Lua
- From: "Jasper Klein" <jasper@...>
- Date: 2019年10月27日 18:43:44 +0100
Hi,
There is an issue with a calulation I did with Lua 5.3.5 and the latest
5.4 beta.
The result of the two lines below is a '-nan'
b = -1.0702700000075937e-05
print( b ^( 1 / 2.19921875 ) )
While this line prints the number '-0.005493842385624'
print( -1.0702700000075937e-05 ^ ( 1 / 2.19921875 ) )
-- Jasper