Fix percentage calculation

pull/21833/head
Travis Ralston 2021-01-19 00:22:02 -07:00
parent ab51404421
commit f06aa00240
1 changed files with 1 additions and 1 deletions

View File

@ -38,5 +38,5 @@ export function percentageWithin(pct: number, min: number, max: number): number
}
export function percentageOf(val: number, min: number, max: number): number {
return (val - min) / max;
return (val - min) / (max - min);
}