yaoshiu / pretty-der6y

Hachimi hachimi hachimi~
GNU Affero General Public License v3.0
4 stars 5 forks source link

[Lint]: Why using excessive precision on float? #34

Closed fu050409 closed 1 month ago

fu050409 commented 1 month ago

In Failed CI Checks:

image

An error actually occured. Why use 0.59999999999999998 here?

yaoshiu commented 1 month ago

Because it is the default pace_range value in the official client, I tried to mimic the behavior of the official client as much as possible. I have noticed this error, but I don't have time to fix it at the moment. Just simply replace the type of pace_range with f64 will do the trick I think.