Module:Harmonic entropy: Difference between revisions

Bug fixing
Bug fixing
Line 14: Line 14:
-- output without rounding if prec is omitted
-- output without rounding if prec is omitted
if prec then
if prec then
return round(1200*u._log(ratio), prec)
return u._round(1200*u._log(ratio), prec)
-- output with rounding if prec is given
-- output with rounding if prec is given
else
else