Skip to content

Bug: Carbohydrate Entries typed starting with decimal points are misinterpreted #2307

@marionbarker

Description

@marionbarker

Describe the bug
When entering values in the add carbohydrates screen, if a leading decimal point is entered it is discarded and user may not notice.

For example: Enter .05 g of carbohydrates, the . is discarded, as is the 0 and the entry remains as 5 g.

Problem was noticed when user "accidentally hit Add Carb Entry instead of Bolus to perform a 0.05U bolus".

Attach an Issue Report
N/A

To Reproduce
Steps to reproduce the behavior:

Expected behavior
If someone types ".05" vs "0.05", expect to have the same value be entered.

This only happens in the Carbohydrate screen.
The bolus entry screen behaves correctly.

Phone

  • iOS 18.3

Loop Version

  • Loop 3.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions