Skip to content

Conversation

@AhmedAlaa4611
Copy link
Contributor

Continuation of #57148

@AhmedAlaa4611
Copy link
Contributor Author

I think intdiv() is faster because:

  • It avoids creating a floating-point number.
  • It performs one internal operation instead of two (division + cast).
  • It avoids potential floating-point rounding errors.

@taylorotwell
Copy link
Member

I think it's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants