diff --git a/src/utility.ts b/src/utility.ts index 37a7109..9881e65 100644 --- a/src/utility.ts +++ b/src/utility.ts @@ -146,7 +146,7 @@ export function label_to_Hu(s:string): number { * */ export function JuMuHu_to_label(c:JuMuHu, precise=false): string { const divisor = precise ? 1 : 10 - return Math.floor(c.Ju/divisor)+Hu_to_label(c.Hu)+Math.floor(c.Mu*2/divisor) + return Math.round(c.Ju/divisor)+Hu_to_label(c.Hu)+Math.round(c.Mu*2/divisor) } /**