In the past, I’ve heard that performance wise, multiplication is done faster than division. This has led me to stick to multiplication in my scripting math (ex. *0.5 instead of /2). I wonder if this is truly the case, or if the difference even matters.
well by what ive seen multiplication is a tad faster. however given that the pc is doing all the calculations using division wouldnt really make too much difference. cos you know its a computer that does math quickly. (The difference will be unnoticable)
If you are doing tons of complex math, then perhaps consider this, if not I wouldnt worry too much.
tl;dr it does not matter, use whatever is most clear to you
ps: in luau this should matter even less
2 Likes