db_quote_cursor.execute("""select lastince
from `here`
order by `date` desc, `time` desc
limit 1""")
thisout= db_quote_cursor.fetchone()
thisout is a single value that is a float. I need to do calculations on it but can't cast it as a float in the tuple.
!work(pleasework=float(thisout[0]))
I tried converting it to a list, that didn't work either. How do I directly access the value within the tuple when I don't want/need to loop through it? Or something else maybe...
Here's what I get back from the database:
print(this out)
# -> ((Decimal('118'),),)
And this is the error I'm getting:
>>> result = float(thisout[0])
Traceback (most recent call last): File "file.1.py", line 56, in <module>
TypeError: float() argument must be a string or a number