As a user, I would like to have a UOM converter #5
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
equadrat-oss/Framework.Math#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement a configurable convert for values with unit (UOM).
Provide a parser and formatter for units.
Support simple/base units such as m (meter), g (gram), s (second).
Support complex units such as m/s or g/cm³.
Support symobols for complex units such as W (1 watt = 1 J/s)
Support decimal, double and maybe other reasonable data types.
Units shall have a dimension: meter=length, second=time.
A symbol must be unique per dimension.
Units shall have symbols and names: m for meter.
Values shall be handled with separate scale and unit. 1.23 km: value=1.23, scale=3 (10^3), unit=meter
When parsing values the user should be able to provide a simple unit like dimension as hint if symbols might conflict: length/time
frederik.engelhardt referenced this issue2026-09-08 17:11:44 +02:00