Method: Numeric#percent_intensity

Defined in:
lib/mtk/numeric_extensions.rb

#percent_intensityObject

Note:

The standard range of intensity percentages is from 0 - 100

Convert a Numeric percentage to a MTK::Core::Intensity

Examples:

100.percent_intensity => fff




40
41
42
# File 'lib/mtk/numeric_extensions.rb', line 40

def percent_intensity
  MTK::Core::Intensity.from_f(self/100.0)
end