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

1

how to get the min value of two variables in math

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

Code answers related to "how to get the min value of two variables in math"

Browse Popular Code Answers by Language