Posted 11 October 2014 - 12:24 PM
Hello again..
i would like to know, if it is possible to "get rid of" all the extra numbers that comes after the punktuation in a number..
more specificly.. the Big reactor heat.
pastebin
i would like to know, if it is possible to "get rid of" all the extra numbers that comes after the punktuation in a number..
more specificly.. the Big reactor heat.
pastebin
mon = peripheral.wrap("monitor_0")
rea = peripheral.wrap("back")
mon.setCursorPos(1,1)
mon.write("Reactor 1:")
local function fuel()
fuelam = rea.getFuelAmount()
fuelmax = rea.getFuelAmountMax()
return math.floor(fuelam / fuelmax * 100)
end
while true do
cheat = rea.getCasingTemperature()
fheat = rea.getFuelTemperature()
mon.setCursorPos(1,3)
mon.clearLine()
mon.write(fheat)
mon.setCursorPos(1,4)
mon.clearLine()
mon.write(cheat)
mon.setCursorPos(1,5)
mon.clearLine()
mon.write(fuel())
sleep(1)
end
Edited on 16 December 2014 - 02:26 AM