The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Mod and other function logic MOD(7,2) or 7 MOD 2?
02-28-2019, 08:26 PM
Post: #1
Mod and other function logic MOD(7,2) or 7 MOD 2?
Hello,
Every time I use the Mod function to calculate the reminder of a division between 2 numbers, I always get an error because I code it the wrong way.
I don't know why but I always code like MOD(7,2) instead of 7 Mod 2.

Is there a rule or a reason why few functions need to be coded differently from the usual func(var1, var2)?

Thanks

Giancarlo
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Mod and other function logic MOD(7,2) or 7 MOD 2? - Giancarlo - 02-28-2019 08:26 PM



User(s) browsing this thread: 1 Guest(s)