mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: add doc
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user