Posted 04 August 2014 - 05:20 PM
The issue presents itself really simple.
If I do:
I want a number to have no decimal places, as when using print(). How can I fix that? It's really bothering me.
If I do:
print(reactor.getFuelAmountMax())
I get 160000 which is prefectly fine. But if I use
term.write(reactor.getFuelAmountMax())
I get 160000.0 even though the value returned by reactor.getFuelAmountMax() has no decimal places. Same with every other function that returns a number. Using math.floor() doesn't remove it, and I can't get math.round() to work.I want a number to have no decimal places, as when using print(). How can I fix that? It's really bothering me.