I am making a tool of math, i need help in how to verify if my number is float, if true, i implemment a fractional representation of the number.
You could check the value of number%1. If it's 0 it's an integer, otherwise it's a float. Alternatively you could convert the number to a string and use a find to see if there's a point in it.
Develop games in your browser. Powerful, performant & highly capable.
Thanks mate.