Greatest Integer Function | Function to calculate the GIF value of a number ; GIF is the floor of a number ; Driver code
function GIF ( n ) { return Math . floor ( n ) ; } var n = 2.3 ; document . write ( GIF ( n ) ) ;