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

print to monitor variable

Started by fergregerg, 08 July 2012 - 01:31 PM
fergregerg #1
Posted 08 July 2012 - 03:31 PM
so im tryng to print my variable EUamount
This works but it prints it as 0.0 when its empty and
1.0E7 when its in the 10 millions (ts almost always going to be over 10 million.
how do i get it to print "10000000"
mon.write(EUamount)
KevinW1998 #2
Posted 08 July 2012 - 03:35 PM
what are you using to get the EU amount?
fergregerg #3
Posted 08 July 2012 - 06:56 PM
starts at 0 then it gets adds 10000000, while i print in the console it shows 10000000 but on screen 1.0E7
KevinW1998 #4
Posted 08 July 2012 - 07:20 PM
I mean where do you get the information?
Are you using Redstone or a other mod to get it?
cant_delete_account #5
Posted 08 July 2012 - 07:46 PM
Please post the full code of the program.