Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #max #variables #math
ADD COMMENT
Topic
Name
4+7 =