Posted 30 July 2014 - 06:11 AM
VERSION:
ComputerCraft 1.63, singleplayer world and multiplayer world (vanilla, mcpc+)
DESCRIPTION:
Idk if it should be called that way, but there seems to be a floating point error with the setCursorPos function
REPRODUCTION STEPS:
This code
But yet, it outputs this
ComputerCraft 1.63, singleplayer world and multiplayer world (vanilla, mcpc+)
DESCRIPTION:
Idk if it should be called that way, but there seems to be a floating point error with the setCursorPos function
REPRODUCTION STEPS:
This code
term.clear()
term.setCursorPos(1,1)
for i = 1, 4, 0.2 do
local x, y = term.getCursorPos()
term.setCursorPos(i, y)
print(i)
end
Should output something likeSpoiler
1
1.2
1.4
1.6
1.8
2.0
2.2
2.4
2.6
2.8
3.0
3.2
3.4
3.6
3.8
Spoiler
1
1.2
1.4
1.6
1.8
2.0 // This is not on the second column
2.2
2.4
2.6
2.8
3.0
3.2
3.4
3.6
3.8
Edited on 30 July 2014 - 05:49 AM