(Oct-04-2018, 04:04 PM)gruntfutuk Wrote:(Oct-04-2018, 04:01 PM)volcano63 Wrote: The moment you appliedIllegal! Wow. Didn't think learning to programme was that serious.str
conversion, you made formatting options irrelevant (actually, illegal)...
exception == illegal
(by Python laws, of course, not by Her Majesty's )(Oct-04-2018, 04:05 PM)Irhcsa Wrote: Then how would I do it? I have to make it produce a float to the 12 decimal. Is it not possible?
I have just shown you how . Take a look again at my example
PS You need a
float
value to format it as a float. str(value)
creates a string
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.