class

Units::ScaleFunction

Inherits Units::ScaleFunction::Functions < Units::Scale < Comparable < Units::Compatible < Reference < Object

Constructors

new(function_code : String, value, unit = Unit.new)
Source
new(function : FunctionSelection, value, unit = Unit.new)
Source

Instance methods

function
Source
magnitude(scalar = scalar)

Get the equivalent magnitude on this scale for a scalar value

Source
scalar(magnitude = value)

Get the equivalent scalar value of a magnitude on this scale

Source

Nested types