chore: add doc

This commit is contained in:
rzzf
2026-03-12 16:41:11 +08:00
parent 9feeac7514
commit 2184fe1aaa

View File

@@ -1,3 +1,8 @@
/**
* Due to browser rendering and calculation precision loss issues,
* boundary checks cannot be based solely on value equality;
* a certain range of fluctuation is permissible.
*/
export function isGreaterThan(a: number, b: number, epsilon = 0.03) {
return a - b > epsilon
}