Programming
Python
R
Java
C
C++
C#
WEB
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
MORE
Examples1
Python
GO
R
Java
C
C++
C#
Examples2
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Seo Tools
Code Minifier
Code Beautifier
Language Compiler
Misc Tools
File Converter
References
C
C++
Python
Java
PHP
JavaScript
Examples
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Home
About
Contact
JetPack
Multi Themes-->>
Code it ALL
Scroll TOP
floor() - math.h in c - CodeGK
Δ C References
string.h
strcat()
strcmp()
strcpy()
strlen()
math.h
acos()
acosh()
asin()
asinh()
atan()
atan2()
atanh()
cbrt()
ceil()
cos()
cosh()
exp()
fabs()
floor()
hypot()
log()
log10()
pow()
sin()
sinh()
sqrt()
tan()
tanh()
ctype.h
isalnum()
isalpha()
iscntrl()
isdigit()
isgraph()
islower()
isprint()
ispunct()
isspace()
isupper()
isxdigit()
tolower()
toupper()
♦ floor() - math.h
♣ Example1: floor()
Input:
Run CODE
Reload Code
Copy Code
#include
#include
int main() { double num1=-2.5; double result1= floor(num1); printf("%f\n", result1); double num2=0; double result2= floor(num2); printf("%f\n", result2); double num3=3.9; double result3= floor(num3); printf("%f\n", result3); return 0; }
Output: