mycursor.execute("SELECT lcm FROM testdatabase")
data = mycursor.fetchone()
print(data)
This was the code I used and this returns something like : (Decimal('1.8500'),)
But I want it to show only 1.85 as a number, how can I do this?
mycursor.execute("SELECT lcm FROM testdatabase")
data = mycursor.fetchone()
print(data)
This was the code I used and this returns something like : (Decimal('1.8500'),)
But I want it to show only 1.85 as a number, how can I do this?