Units::Term
Inherits Comparable < Units::Compatible < Struct < Value < Object
Constructors
new(atom : Units::Atom | Nil = nil, prefix = Prefix::None, factor : Number = 1, exponent : Number = 1, note : String | Nil = nil)
SourceInstance methods
atom
Sourcedepth
Sourceexponent
Sourcefactor
Sourcemagnitude(scalar = scalar())
Sourcenote
Sourceoperate(operator : Operation, other : Unit | Term) : Unit
Sourceprefix
Sourceroot_terms
Sourcescalar(magnitude = 1)
Sourcespecial?
Sourceterminal?
Source