Jump to content




Eulers Number on Monitor


  • You cannot reply to this topic
2 replies to this topic

#1 LukePlaysLK

  • Members
  • 3 posts

Posted 08 July 2017 - 08: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

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 08 July 2017 - 11:45 PM

tostring() usually deals with this.

#3 cntkillme

  • Members
  • 24 posts

Posted 12 July 2017 - 06: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))





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users