Function: Calculatre Ratio from 2 numbers
-
Hi
I want to return a ratio such as 2:3
I’ve found this code online
How would I put that in the equation fieldfunction ratio(x,y) {c=gcd(x,y); return ""+(x/c)+":"+(y/c)}
Thanks
Jean-Lou- This topic was modified 6 years, 8 months ago by .
- This topic was modified 6 years, 8 months ago by .
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Function: Calculatre Ratio from 2 numbers’ is closed to new replies.