Hi,
I ran into a problem with my macro that I cannot seem to find the answer to.
This is the BASIC, and really basic code I have for it.
Function PPMCON(a)
PPMCON = (a/44.01)/1000
End Function
Now, initially I did not have the parentheses until I realized LibreCalc won’t do basic PEMDAS. Instead the program first divides 44.01 by 1000, and only thenn the variable “a” by it. I added the parentheses in hopes that maybe this will do the trick, but it didn’t.
Basically my question is - how should i write this code so it returns the correct value?
Thanks