Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odometer Decimal Point saves as 0 miles #163

Open
pc-zookeeper opened this issue Jan 25, 2024 · 5 comments
Open

Odometer Decimal Point saves as 0 miles #163

pc-zookeeper opened this issue Jan 25, 2024 · 5 comments
Assignees

Comments

@pc-zookeeper
Copy link

Currently, when you enter a decimal point in the odometer field and save the record, it saves as 0. This is also causing importing new data via CSV to fail/generate errors.

Entering data:
image

Result:
image

Editing the record:
image

@hargata hargata self-assigned this Jan 25, 2024
@hargata
Copy link
Owner

hargata commented Jan 25, 2024

ah! so decimals aren't supported because the underlying data type for odometer only takes whole numbers.
All I can really do is convert the decimal to an integer(which will lose some precision due to rounding) and make sure that it doesn't turn into a 0 when the data is saved. I'll work on this today.

@hargata
Copy link
Owner

hargata commented Jan 25, 2024

@pc-zookeeper This should be fixed in the latest docker image, you will lose some precision but at least it won't turn into a 0.

@pc-zookeeper
Copy link
Author

Thanks! Any way to keep the precision in the future?

@hargata
Copy link
Owner

hargata commented Jan 25, 2024

@pc-zookeeper potentially, but unlikely unless there's a good amount of push for it.

@GazaShaggy
Copy link

I would like decimal precision if it's something that could be done in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants