Hello,
Is there a javascript function that converts fractions to decimals? In other words, if a user enters (1/2) ConvertToDecimal(1/2) will spit out .5. I could definitely write a function to do this (search for “/”…if it exists, spit out stuff before “/” divided by stuff after “/” assuming that the stuff after isn’t 0)…but as a newcomer to Javascript, it would be nice to know if such a function is already part of Javascript.
Thanks so much!
-Eric