PDA

View Full Version : MathMax



Edakad
08-05-2014, 06:56 PM
Hello

Is there MathMax function or equivalent function available ? Documentation does not list this.

Thanks and regards

Hassan-HS
08-06-2014, 08:48 AM
Hello,

This function returns the maximal value of two values.




Public Sub main()
AlertMessage Max(1,-2)
End Sub


Public Function Max(x,y)

if x > y then
Max=x
else
Max=y
end if

end function

Edakad
08-06-2014, 09:54 AM
Thanks Hassan,
using this in code, just wanted to make sure whether available as built in function... u know efficiency with built in functions

Hassan-HS
08-06-2014, 01:07 PM
Hello,

No it's not available.