Module:Sharpness documentation: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 18: Line 18:
else
else
out_str = out_str
out_str = out_str
.. "where a sharp " .. ((s < 0) and {"lowers"} or {"raises"})[1] .. " by " .. s .. " step"
.. "where a sharp " .. ((s < 0) and {"lowers"} or {"raises"})[1] .. " by " .. math.abs(s) .. " step"
if s ~= 1 then
if math.abs(s) ~= 1 then
out_str = out_str .. "s"
out_str = out_str .. "s"
end
end