Method: UnitMeasurements::Math#cbrt
- Defined in:
- lib/unit_measurements/math.rb
#cbrt ⇒ Measurement
Returns cube root of the measurement quantity.
116 117 118 |
# File 'lib/unit_measurements/math.rb', line 116 def cbrt self.class.new((quantity ** Rational(1, 3)), unit) end |