Smallest of three integers without comparison operators |  ; Function to find minimum of x and y ; Function to find minimum of 3 numbers x , y and z ; Driver code
let CHAR_BIT = 8 ; function min ( x , y ) { return y + ( ( x - y ) & ( ( x - y ) >> ( 32 * CHAR_BIT - 1 ) ) ) } function smallest ( x , y , z ) { return Math . min ( x , Math . min ( y , z ) ) ; } let x = 12 , y = 15 , z = 5 ; document . write ( " " + smallest ( x , y , z ) ) ;