Skip to content

Commit

Permalink
Fix/IEEE754 decimal precision
Browse files Browse the repository at this point in the history
  • Loading branch information
ishiko732 committed Oct 23, 2024
1 parent 348e80d commit 01bb501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsrs/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const generatorParameters = (
w = props?.w.concat([0.0, 0.0])
w[4] = +(w[5] * 2.0 + w[4]).toFixed(8)
w[5] = +(Math.log(w[5] * 3.0 + 1.0) / 3.0).toFixed(8)
w[6] += 0.5;
w[6] = +(w[6] + 0.5).toFixed(8)
console.debug('[FSRS V5]auto fill w to 19 length')
}
}
Expand Down

0 comments on commit 01bb501

Please sign in to comment.