Hi, thank you for your response. Of course, I know about the modulo operator. This challenge was supposed to be about your worst programs. And as an example I posted this function that divides two numbers, casts the result to a string, searches the whole string for a comma and returns whether a comma was found or not instead of just using %. This is pretty bad in my view. I thought you (the community) might have some other terrible examples like this.
Ohhhhh. I definitely missed that nuance in your original question. My mistake.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.