lib/quantify/unit/compound_base_unit.rb
# Container class for compound unit base units. Each instance is represented
# by a unit and an index, i.e. a unit raised to some power. If no index is
# present, 1 is assumed.
#
# Instances of this class can be used to initialize base units, and are the
# structures which hold base units within compound units
#
Container class for compound unit base units. Each instance is represented
by a unit and an index, i.e. a unit raised to some power. If no index is
present, 1 is assumed.

Instances of this class can be used to initialize base units, and are the
structures which hold base units within compound units
Container class for compound unit base units . Each instance is represented by a unit and an index i . e . a unit raised to some power . If no index is present 1 is assumed . Instances of this class can be used to initialize base units and are the structures which hold base units within compound units
def index_as_string(reciprocal=false)
        if reciprocal == true
          @index == -1 ? "" : formatted_index(@index * -1)
        else
          @index.nil? || @index == 1 ? "" : formatted_index
        end
      end
def index_as_string ( reciprocal = false ) if reciprocal == true @index == - 1 ? "" : formatted_index ( @index * - 1 ) else @index . nil? || @index == 1 ? "" : formatted_index end end
Container class for compound unit base units.
Container class for compound unit base units .
reciprocal
<not_specific>