Lets Learn Rust - 12 - Assignment and Arithmetic operators

2 months ago
2

G'day guys

In this video I start talking about operators. Starting with the Assignment and Arithmetic operators. This includes the following operators.

Assignment Operator: ie =
Addition Operator: ie +
Subtraction Operator: ie -
Multiplication Operator: ie *
Division Operator: ie /
Remainder (Modulus) Operator: ie %

I also mention some of the gotchas with integer and float point number divisions and the same issue with remainders

Important Times

00:00 - Introduction
00:17 - What is the Assignment Operator?
00:54 - Add, subtract and multiply operators
03:26 - Division operator using integers
06:04 - Division operator using floating point numbers
07:04 - Division operator gotchas
12:48 - The Modulus / Remainder operator
16:31 - Conclusion

Loading comments...