This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LukePlaysLK's profile picture

Eulers Number on Monitor

Started by LukePlaysLK, 08 July 2017 - 07:29 PM
LukePlaysLK #1
Posted 08 July 2017 - 09:29 PM
Hello ComputerCraft Community,

I want to check the energy which is stored with an computer. So far no problem. The problem
is that when I want to display a big number like one billion, the monitor writes eulers number.

How can I solve this problem and can show one billion normally?

Lukas
Bomb Bloke #2
Posted 09 July 2017 - 12:45 AM
tostring() usually deals with this.
cntkillme #3
Posted 12 July 2017 - 07:59 AM
It's not euler's number, it's just short-hand for "times 10 to the power of."
Anyways: print(string.format("%.0f", num))