Q:

How can i get exactly 2 decimal position in python

While writing a code I came around to a difficult situation, I have a float 2.467 But I need 2.4 only not 2.5 
When I use roud() function it gives 2.5
Please help me with a code that how to get 2.4 from 2.47

A:

>>> int(2.467 * 10) / 10.0
2.4
>>> int(2.47 * 10) / 10.0
2.4

