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

Fix rounding #8

Closed
wants to merge 1 commit into from
Closed

Conversation

mountrcg
Copy link
Contributor

There was still the issue with 2 digits in the DateTable for tempTargets
also another place in TT state model

TempTarget rounding
@Jon-b-m
Copy link
Member

Jon-b-m commented Mar 24, 2023

No. It is rounded in a closure higher up already. Thus this PR serves no purpose

@mountrcg
Copy link
Contributor Author

mountrcg commented Mar 25, 2023

@Jon-b-m try to put in 8.1mmol/L as temp target and when switch to mg/dL.

Simulator Screen Shot - Dev iPhone 13mini - 2023-03-25 at 13 42 40
It will also be saved with one decimal im mg/dL.

This commit fixes this and also that the data table displays converted TT with 2 decimals.

Simulator Screen Shot - Dev iPhone 13mini - 2023-03-25 at 13 43 08

Simulator Screen Shot - Dev iPhone 13mini - 2023-03-25 at 13 39 54

@Jon-b-m
Copy link
Member

Jon-b-m commented Mar 25, 2023

I tested current code. It converts fine already mmol/L <-> mg/dl. Your code is outdated. You need to sync updates.

@mountrcg
Copy link
Contributor Author

mountrcg commented Mar 25, 2023

I did the screens just now with current dev.
But I guess you worked on the TT thing and fixed with that. Did you fix the History Table too?

Simulator Screen Shot - Dev iPhone 13mini - 2023-03-25 at 14 01 42

@mountrcg mountrcg closed this Mar 27, 2023
@mountrcg mountrcg deleted the rounding_again branch May 11, 2023 17:32
dnzxy pushed a commit to dnzxy/iAPS that referenced this pull request Dec 23, 2023
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

Successfully merging this pull request may close these issues.

2 participants