updated
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
local function getValue(reactor)
|
local function getValue(reactor)
|
||||||
local kelvin = reactor.getTemperature() or 0
|
local kelvin = reactor.getTemperature() or 0
|
||||||
local fahrenheit = (kelvin - 273.15) * 9 / 5 + 32
|
local fahrenheit = (kelvin - 273.15) * 9 / 5 + 32
|
||||||
return fahrenheit
|
return math.floor(fahrenheit * 100 + 0.5) / 100
|
||||||
end
|
end
|
||||||
|
|
||||||
local function color(reactor)
|
local function color(reactor)
|
||||||
|
|||||||
Reference in New Issue
Block a user