Method: Numeric#percent_intensity
- Defined in:
- lib/mtk/numeric_extensions.rb
#percent_intensity ⇒ Object
Note:
The standard range of intensity percentages is from 0 - 100
Convert a Numeric percentage to a MTK::Core::Intensity
40 41 42 |
# File 'lib/mtk/numeric_extensions.rb', line 40 def percent_intensity MTK::Core::Intensity.from_f(self/100.0) end |