Skip to content

Unitwise::Delta #73

@fabiengagne

Description

@fabiengagne

How about having the ability to deal with delta temperatures, or delta speeds or delta whatever?

Like being able to specify a delta temperature of x degrees (3 C, 4 F or 7 K). This would allow to compute a new temperature by adding or subtracting a delta temperature to a temperature that is not necessarily in the same unit.

It would be useful when dealing with thresholds or safety margins, all while implementing user's unit preferences.

For example :

# current_temperature is a temperature
# safety_margin is a delta-temperature
# threshold_temperature is a temperature
if (current_temperature - safety_margin) > threshold_temperature
  raise_alarm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions