Anyway, better people than I in this thread have said their piece about mathematics and programming before, so I'll shamelessly plagiarize their answers too:
Since it got brought up, I'll go into a little further depth with my answer and specifically how web developers in particular use math.
I mentioned the modulus in my previous answer. The modulus/modulo is an operator which tells you what the remainder is after dividing one number by another. For example, 7 mod 3 is 1, because 3 goes into 7 two times, and 3 times 2 is 6, and the difference between 7 and 6 is 1. As far as I know "remainders" is something you learn in elementary school algebra and then never again since they're kind of useless in most of the real world, but for web stuff they can be useful particularly for determining when to do something every Nth times. For example, it's often desirable to "zebra stripe" large tables so that subsequent rows (or columns) have different colors to make them easier to differentiate. The background color for even-numbered rows (in math terms, this means a number for which X mod 2 = 0; starting with zero, natch) will be white, but for odd-numbered rows, it will be light gray. That might look like this in pseudocode:
Code:
number_of_rows is 12;
current_row is 0;
while (current_row is less than number_of_rows) {
if (current_row mod 2 equals 0) {
background_color is white;
else {
background_color is light_gray;
}
draw_row(with color background_color);
current_row is current_row + 1;
}
Some tables will have zebra-striping with three more columns, but the same type of math can apply; if (X mod 3) = 0, do the first color, else if (X mod 3) = 1, do the second color, else do the third color. Similar math comes into play if we're doing something like making a grid of images where each row of the grid will be X images wide.
Another thing that I probably should have mentioned in my previous answer is that web devs often use geometry when dealing with images, and particularly figuring out how to scale an image to a desired size, since it's wasteful to constantly be sending site visitors full-sized images. Let's say we have an image which is W pixels wide and H pixels tall. We need to scale it so that is no larger than 200 pixels wide. But if we just resize the width of the image without resizing its height correspondingly, then the aspect ratio of the image will be different from the image and it will look all distorted. So if we have an original image where W is 500 and H is 800, then when we set its width to 200, we need to set its height to (200 / 500) * 800 = 320 pixels in order for it to have the same aspect ratio. Similar math will come into play when we want to crop images.
All this is to say that while it will probably take non-programmers a while to remember how to do this sort of stuff from their high school math days, it's not trig and it's certainly not that difficult to master. So don't sweat about learning math if you want to get into programming. If you passed high school math without cheating too much, you can probably handle enough of the math parts to to make a decent living.
There are two aspects of my job which use stuff which I'd imagine is harder for people to grasp than the math parts. One is regular expressions. This is a way to basically tell a computer "in this lump of text, find bits of text which match this particular pattern." For example, you can use regular expressions to validate a phone number to ensure that a user entered a valid phone number into a field; it has the right number of digits and doesn't have anything unexpected like a letter. But at the same time, we want to be nice and allow the user some flexibility on how they enter it, so that they can enter it as "1 (555) 555-1234" or "555-555-1234" or "5555551234" and have all of those be valid, since that's just different ways of stating the same phone number (perhaps you've encountered site on the web which was pedantic about the formatting of such things when it didn't need to be). Regular expressions make this fairly easy to do, but since they're effectively an entirely separate programming language, and one which uses a whole bunch of symbols crashed together, they can be difficult to both write and read. A regular expression to validate a phone number like above might look like
/1?[^\d]*(\d{3})[^\d]*(\d{3})[^\d]*(\d{4})/
(don't at me).
The second is version control. Specifically Git since it's pretty much the industry monopoly at this point, but sometimes you end up working with a company still fixated on SVN or something
(WHY ARE YOU USING FOSSIL, MISTER CLIENT. NOBODY USES FOSSIL EXCEPT YOU AND THE SQLITE PEOPLE AND I'M PRETTY SURE THEY ONLY USE IT FOR DOGFOODING PURPOSES.) First there's coming to grips with the idea of time traveling through the state of the filesystem, but then once you
think you can wrap your head around that, Git throws all this funky vocabulary and syntax at you. Graphical tools help out a lot, but you're still going to need to learn the commands well enough to do stuff like deployment to servers.
I hope none of this is discouraging, though. Just to point out that for most reasonably intelligent people getting into most aspects of software development, there are scarier things you'll encounter than the math. Hope that helps… maybe it doesn't…