【问题标题】:Round off function not works as excepted in sqlite android mobile [duplicate]Round off function not works as excepted in sqlite android mobile [duplicate]
【发布时间】:2022-12-01 19:43:30
【问题描述】:

Select round(1.555,2)

gives the result as "1.55" in the android mobile sqlite master

but in the desktop DB browser sqlite

result as "1.56" so the calculation miss match in mobile application

if there is any settings or else custom function in sqlite please help me.

changed "Data Type" from "Float" to "Real" and tried but not works.

【问题讨论】:

    标签: javascript android sqlite sql-insert


    【解决方案1】:

    if you are using javascript as programming language please use https://www.npmjs.com/package/big-integer for mathematical operation

    【讨论】:

      猜你喜欢
      • 2019-05-04
      • 1970-01-01
      • 1970-01-01
      • 2017-06-22
      • 2020-09-19
      • 2022-12-02
      • 2017-10-29
      • 2020-01-18
      • 1970-01-01
      相关资源
      最近更新 更多