I wrote a function that behaves differently depending on the numeric type of it\'s parameters. Integer or float.
Using some code from this question How do I check that a
number%1===0
If that condition is true , it's integer, else it's float
true