Module:Convert: Difference between revisions

update from Module:Convert/sandbox: singular units for fractions 1 or less
(update from Module:Convert/sandbox: "warnings=1")
(update from Module:Convert/sandbox: singular units for fractions 1 or less)
Line 1,207:
return false, { 'cvt_bad_num', text }
end
if spelled and value <= 1 then
singular = true -- for example, "¹/₂ mile" or "one half mile" (singular unit)
else
singular = false -- any numeric fraction (even with value 1) is regarded as plural
end
end
Anonymous user