Skip to content

Commit

Permalink
fix(jogasaki): casting to integer truncates instead of rounding to ne…
Browse files Browse the repository at this point in the history
…arest

Before the fix, casting float to integer accidentally rounded to nearest integer, e.g. 1.7 became 2.
The expected behavior is to truncate fractional portion (round toward 0). So 1.7 will be 1 now correctly.
  • Loading branch information
kuron99 committed Mar 22, 2024
1 parent e4404c3 commit f32c9f4
Showing 1 changed file with 1 addition and 1 deletion.

0 comments on commit f32c9f4

Please sign in to comment.