Fixes bug due to not passing format to formatImperial (#211)
This commit is contained in:
parent
9d1366b8b1
commit
a095a2c8cd
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const formatMm = (val, units, format = 'html') => {
|
|||
let suffix = ''
|
||||
if (format === 'html') suffix = '"'
|
||||
let fraction128 = Math.round(rest * 128)
|
||||
if (fraction128 == 0) return formatImperial(negative, inches)
|
||||
if (fraction128 == 0) return formatImperial(negative, inches, false, false, format)
|
||||
if (fraction128 % 64 == 0)
|
||||
return formatImperial(negative, inches, fraction128 / 64, 2, format) + suffix
|
||||
if (fraction128 % 32 == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue