Module: Precision

Defined in:
lib/hippo/templates/liquid/precision.rb

Instance Method Summary collapse

Instance Method Details

#precision(number, precision) ⇒ Object


3
4
5
# File 'lib/hippo/templates/liquid/precision.rb', line 3

def precision(number, precision)
    sprintf("%.#{precision}f", number)
end