litesuits / litesuits/android-lite-orm

float存进数据库之后多出很多位小数

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.5k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

0.01存进数据库变成了0.009999999....怎么保存成0.01?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported 0.01-to-0.009999999 behavior through LiteOrm and SQLite, then trace the ORM's numeric persistence and retrieval path. Done means the stored and retrieved value preserves the expected 0.01 representation without breaking other numeric values.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sqlite
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.