I have a list online= [204.945, 205.953, 346.457]
and I want to only have the numbers in the list to two decimal places (one list rounded and one list not-rounded). So like this, online= [204.94, 205.95, 346.45]
for the not rounded and like this online= [204.95, 205.95, 346.46]
for the rounded.
I don't even know any code that makes this possible, so I don't really have a code to show my approach. I mean I did try to play around with int()
but that seems to remove all the decimal places and just gives me an integer.