You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python, integer division is written //. For example 3 // 2 = 1. This also applies to floating point numbers, so 3.1 // 2.05 = 1
In Rust, there are two cases:
integer operands: just use the standard / operator.
float operands: we need to do floating point division and then floor. (The floating point numbers may not be within the representable range for integers.)
The text was updated successfully, but these errors were encountered:
In Python, integer division is written //. For example 3 // 2 = 1. This also applies to floating point numbers, so 3.1 // 2.05 = 1
In Rust, there are two cases:
integer operands: just use the standard / operator.
float operands: we need to do floating point division and then floor. (The floating point numbers may not be within the representable range for integers.)
The text was updated successfully, but these errors were encountered: