As a user, I would like to have a UOM converter #5

Closed
opened 2026-02-06 12:49:36 +01:00 by frederik.engelhardt · 0 comments
  • 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

- 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
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
equadrat-oss/Framework.Math#5
No description provided.