console output

is it possible when printing numbers to fromat for a specified numbers of digit after the dot?

any doc on this >


Yes, you write the line like:

print "" %number

Where n is how many decimal places you want to print. For example:

print "%.3f" %4.1234567

Will print out


yap seems to work not bad !

is there a way to copy from the console
like messages or to redirect to a txt file ?

it seems that before we could used something like Ctr-c contrl V
not so long ago ?