Skip to content

UoM item behaves different than plain item for small values #4789

Open
@spacemanspiff2007

Description

@spacemanspiff2007

There is a difference how small values are reported between plain number items and UoM number items:

Normal item

{
  "type": "ItemStateUpdatedEvent", 
  "topic": "openhab/items/NumGAChpjf/stateupdated", 
  "payload": {"type": "Decimal", "value": "0.000000000000000001"}
}

UoM item

{
  "type": "ItemStateUpdatedEvent",
  "topic": "openhab/items/NumHPTfdwy/stateupdated",
  "payload": {"type": "Quantity", "value": "1.0E-18 m"}
}

Maybe it makes sense to align this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions