Answers for "math max of two numbers"

1

how to get the max value of two variables in math

(x sgn(x - y) + y sgn(-x + y) + x + y) / 2 
//This will return the maximum value withof if sentences (sgn = signum)
//Althouh 99% of the time some function max() is avalibale
Posted by: Guest on April-22-2021

Code answers related to "math max of two numbers"

Browse Popular Code Answers by Language