8 Answers
+ 4
Addition, subtraction, division, and multiplication â And really, the computer will be doing the adding, subtracting, dividing, and multiplying for you anyway. You just have to know when you need to do these operations.
Mod â The mod operation is the âremainderâ and its sign is usually the % percent sign. So 23 divided by 7 is 3 with a remainder of 2. But 23 mod 7 is 2.
The even/odd mod test trick â If you want to know if a number is odd or even, mod it by 2. If the result is 0, the number is even. If the result is 1, the number is odd. 23 mod 2 is 1, so you know 23 is odd. 24 mod 2 is 0, so you know 24 is even. If x mod 2 is 0, you know that whatever number is stored in the variable x is even.
To get a percentage of a number, multiply that number by the percent number with the decimal point in front of it. So to get 54% of 279, multiple 0.54 * 279. This is why 1.0 often means 100% and 0.0 means 0%.
Know what negative numbers are. A negative number times a negative number is a positive. A negative times a positive is negative. Thatâs about it.
Know what a Cartesian coordinate system is. In programming, the (0, 0) origin is the top left corner of the screen or window, and the Y axis increases going down.
Know the Pythagorean theorem, and that it can be used to find the distance between two points on a Cartesian coordinate system. The Pythagorean theorem is a^2 + b^2 = c^2. What this usually means in programming is the distance between coordinate (x1, y1) and (x2, y2) will just be sqrt( (x1 â x2)^2 + (y1 â y2)^2 ).
Know what decimal, binary, and hexadecimal numbering systems are. Decimal numbers are the numbers weâre used to that have ten digits: 0 to 9. Itâs commonly thought that humans develop this system because we have ten fingers and counted on our fingers.
+ 12
@neicore, can you give the credits to the original answer or at least, link the complete reference? ^^
Abhay Tandon - https://www.quora.com/What-kind-of-mathematics-is-important-for-programmings
+ 9
ya I dunno it unless I ask the magic computer snake.
+ 7
I don't know what 12*6 is
+ 2
that's generally for programming buddy I hope you get me
+ 1
yea I got it from the web but not that link @Maz
Its this one
https://inventwithpython.com/blog/2012/03/18/how-much-math-do-i-need-to-know-to-program-not-that-much-actually/
+ 1
More than I can handle :(
Hate math, love coding.
God's ironic sense of humour.
0
@Ahri Fox its twelve times six