Math Operators: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 5: Line 5:
  * Multiplication x * y
  * Multiplication x * y
  / Division x / y
  / Division x / y
  % Modulus x % y
  % Modulus x % y (this is the remainder after dividing the two numbers)
  ** Exponentiation x ** y
  ** Exponentiation x ** y
  // Floor division x // y
  // Floor division x // y

Latest revision as of 01:41, 22 August 2025

Operat  Name     	Example 	
+ 	Addition 	x + y 	
- 	Subtraction 	x - y 	
* 	Multiplication 	x * y 	
/ 	Division 	x / y 	
% 	Modulus 	x % y 	(this is the remainder after dividing the two numbers)
** 	Exponentiation 	x ** y 	
// 	Floor division 	x // y