Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround Fan Percent Setting floating point err
Workaround floating point precision error which will cause invalid value after ceil() For example, the current value: speedMax: 10 percent: 70 speedMax * (percent * 0.01) = 7.000000000000001 (floating point precision error) ceil(speedMax * (percent * 0.01)) = 8 => The error propagate to ceil and cause the final result error.
- Loading branch information