math.sin and math.cos error
Posted: Mon Dec 16, 2013 5:59 pm
Hi, all I'm running love 0.8.0 and when I launched this:
I see this:
What's the error?
Thanks (:
Code: Select all
print('math.sin 0: ' .. math.sin(0))
print('math.sin 90: ' .. math.sin(math.pi / 2))
print('math.sin 180: ' .. math.sin(math.pi))
print('math.sin 270: ' .. math.sin(math.pi / 2 * 3))
print('math.cos 0: ' .. math.cos(0))
print('math.cos 90: ' .. math.cos(math.pi / 2))
print('math.cos 180: ' .. math.cos(math.pi))
print('math.cos 270: ' .. math.cos(math.pi / 2 * 3))
Code: Select all
math.sin 0: 0
math.sin 90: 1
math.sin 180: 1.2246467991474e-16
math.sin 270: -1
math.cos 0: 1
math.cos 90: 6.1232339957368e-17
math.cos 180: -1
math.cos 270: -1.836970198721e-16
Thanks (: