View Source Measurements.Scale (Measurements v0.1.2)

Measurements.Scale deals with the scale of a unit and related conversion

Link to this section Summary

Types

t()

Scale Type

Link to this section Types

@type t() :: %Measurements.Scale{coefficient: integer(), magnitude: integer()}

Scale Type

Link to this section Functions

Link to this function

from_value(value, scale \\ %__MODULE__{})

View Source
Link to this function

new(magnitude \\ 0, coefficient \\ 1)

View Source
@spec to_value(t()) :: integer()