Usage:
1. When both dividend and divisor are integers, the result is also an integer.
For example, the result of 1/2 is 0 and that of 9/2 is 4.
2. When the dividend or divisor is a floating point number, the result is a floating point number.
For example, the result of 1.0/2 is 0.5000000000 (double precision type), and the result of 9.0/2.0 is 0.500000000000 (double precision type).
Extended data:
Other calculation functions in C language
If ch is a number ('0'-'9'), Int isdigit(int ch) returns a non-zero value, otherwise it returns 0.
If ch is a printable character (excluding spaces) (0x2 1-0x7E), Int isgraph(int ch) returns a non-zero value, otherwise it returns 0.
If ch is lowercase ('a'-'z'), Int islower(int ch) returns a non-zero value, otherwise it returns 0.
Double fabs(double x) returns the absolute value of the double-precision parameter x.
Long labs(long n) returns the absolute value of the long integer parameter n.
Double e xp(double x) returns the value of the exponential function ex.
Baidu encyclopedia -C language function