You don’t need much math for strictly coding, but:
- If you study any form of theory in CS (which starts with algorithms), you need to be able to write proofs. Discrete math and maybe real analysis are helpful here. Any program that has to be written to be computational efficient will probably require customized algorithms. The further you go, the more you will need math.
- Numerical analysis and scientific computing are specific applications which are math heavy. Those are primarily where scientists and engineers use code. Those topics don’t require much additional knowledge in the way of coding other than the ability to understand why a certain pre-written algorithm is useful in any given situation.
You can write a lot of code without ever knowing a thing about math, but I wouldn’t recommend it.