Knowledge Walls
Venkatesan
Hyderabad, Andhra Pradesh, India
Passcode:
floor(x as float) in Math Library Functions of Programming in CPP
1685 Views
Usage  
Floor function is used to return largest integer value which is greater than x value.
Syntax  
floor(number);
Example  
#include <stdio.h>     
#include <math.h>      
int main ()
{
  printf ( "Floor of 5.9 is ", floor(5.9) );
  printf ( "Floor of -7.3 is ", floor(-7.3) );
  return 0;
}
Output 
Floor of 5.9 is 5
Floor of -7.3 is -8
Next Topics
Next lessons of current book.
Math Library Functions of Programming in CPP
Math Library Functions of Programming in CPP
Math Library Functions of Programming in CPP
Math Library Functions of Programming in CPP
Math Library Functions of Programming in CPP
Previous Topics
Previous lessons of current book.
Math Library Functions of Programming in CPP
User-defined Functions of Programming in CPP
User-defined Functions of Programming in CPP
User-defined Functions of Programming in CPP
User-defined Functions of Programming in CPP
Best Lessons of "Programming in CPP"
Top lessons which are viewed more times.
String Class in CPP of Programming in CPP
Math Library Functions of Programming in CPP
Classes and Objects in CPP of Programming in CPP
String Class in CPP of Programming in CPP
User-defined Functions of Programming in CPP
Math Library Functions of Programming in CPP
String Class in CPP of Programming in CPP
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details