I am doing some calculations using a sqlite database. But the behavior is inconsitent. In my local machine, select 10.95 - 2.95 results in 8.0..
> sqlite3
> select 10.95 - 2.95
8.0
But using the online sqlite "https://sqliteonline.com/", select 10.95- 2.95 results in 7.999999999999999. This is the weird behaviour
This weird behaviour also using the python library "https://docs.python.org/3.5/library/sqlite3.html"
>>> from sqlite3 import connect
>>> con = connect(":memory:")
>>> c = con.cursor)
>>> t = c.execute("select 10.95 - 2.95")
>>> t.fetchone()
(7.999999999999999,)