Fix indentation

This commit is contained in:
nickofolas
2022-01-10 14:15:32 -06:00
parent b731b9946e
commit 30f6d157d9

View File

@ -5,10 +5,9 @@
export function favorToRep(f: number): number { export function favorToRep(f: number): number {
const raw = 25000 * (Math.pow(1.02, f) - 1); const raw = 25000 * (Math.pow(1.02, f) - 1);
return Math.round(raw * 10000) / 10000; // round to make things easier. return Math.round(raw * 10000) / 10000; // round to make things easier.
} }
export function repToFavor(r: number): number { export function repToFavor(r: number): number {
const raw = Math.log(r / 25000 + 1) / Math.log(1.02); const raw = Math.log(r / 25000 + 1) / Math.log(1.02);
return Math.round(raw * 10000) / 10000; // round to make things easier. return Math.round(raw * 10000) / 10000; // round to make things easier.
} }