Module:Convert: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(update from Module:Convert/sandbox: "warnings=1") |
(update from Module:Convert/sandbox: singular units for fractions 1 or less) |
||
Line 1,207: | Line 1,207: | ||
return false, { 'cvt_bad_num', text } |
return false, { 'cvt_bad_num', text } |
||
end |
end |
||
if |
if value <= 1 then |
||
singular = true -- for example, "one half mile" (singular unit) |
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 |
||
end |
end |