Greatest Integer Function | C # program to illustrate greatest integer Function ; Function to calculate the GIF value of a number ; GIF is the floor of a number ; Driver code
using System ; class GFG { static int GIF ( double n ) { return ( int ) Math . Floor ( n ) ; } static void Main ( ) { double n = 2.3 ; Console . WriteLine ( GIF ( n ) ) ; } }