Hey just curious is there a function that you can use to divide in “the right order”, so that the dividend is always the larger number? Currently I do this
x=5
y=10
z=0
if x>y{
z = x/y
}else{
z = y/x
}
I was just wondering if there was a function I could use to do this in one line, like
MakeSureDividendBigger(x/y)
type thing.
Thanks
Javascript:
Or a function:
PHP: