I need to find the way for converting the Float value in to the two point decimal.
I have a API code which is implemented already which will be returning the two Float value.
For example consider it is returning the values as follows: 293.019999504
But I need to make it as 293.01 instead of 293.019999504
As well as it should be handling 0 as 0.00
I am unable to modify the API implementation backend or DB tables.
I need to implement this in views.py where I am getting the values using the API calls.
Need a way to achieve this in pythonic way.