Answers for "how to get the max value of two variables in math"

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 "how to get the max value of two variables in math"

Browse Popular Code Answers by Language