Greatest Integer Function | CPP program to illustrate greatest integer Function ; Function to calculate the GIF value of a number ; GIF is the floor of a number ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int GIF ( float n ) { return floor ( n ) ; } int main ( ) { int n = 2.3 ; cout << GIF ( n ) ; return 0 ; }