![]() |
C - Entwicklung Bibliotheks-Funktionen: Math Homepage von PS-Trainer - C-Entwicklung - Bibliotheken - an PS-Trainer |
|
| Floating-Point Support | Math and related, alpahabetical functon list. |
| Absolute Value, Rounding, Truncation | Calculate the absolute value.
(abs) Calculate the absolute value of a real argument. (fabs) Calculate the absolute value of a long integer. (labs) Calculates the absolute value of a complex number. (cabs) Calculate the floor of a value. (floor) Calculate the ceiling of a value. (ceil) Split a real value into fractional and integer parts. (modf) |
| Division, Quotient and Reminder | Compute the quotient and
the remainder of two integer values. (div) Compute the quotient and the remainder of a long integer. (ldiv) Calculate the floating-point remainder. (fmod) |
| Logarithm and Exponent | Calculate the exponential.
(exp) Calculate logarithms. (log) Compute a real number from the mantissa and exponent. (ldexp) Get the mantissa and exponent of a floating-point number. (frexp) |
| Minimum and Maximum | Minimum, return the
smaller of two values. (min) Maximum, Returns the larger of two values. (max) |
| Random Numbers | Generate a pseudorandom
number. (rand) Set a random starting point. (srand) |
| Root and Power |
Calculate the square root.
(sqrt) |
| Trigonometry | Calculate sines and hyperbolic
sines. (sin) Calculate the tangent or hyperbolic tangent. (tan) Calculate the arcsine. (asin) Calculate the arccosine. (acos) Calculate the arctangent of x (atan) or of y/x (atan2). |
| Floating-Point Support Many Microsoft run-time library functions require floating-point support from a math coprocessor or from the floating-point libraries that accompany the compiler. Floating-point support functions are loaded only if required. When you use a floating-point type specifier in the format string of a call to a function in the printf or scanf family, you must specify a floating-point value or a pointer to a floating-point value in the argument list to tell the compiler that floating-point support is required. The math functions in the Microsoft run-time library handle exceptions the same way that the UNIX V math functions do. The Microsoft run-time library sets the default internal precision of the math coprocessor (or emulator) to 64 bits. This default applies only to the internal precision at which all intermediate calculations are performed; it does not apply to the size of arguments, return values, or variables. You can override this default and set the chip (or emulator) back to 80-bit precision by linking your program with LIB/FP10.OBJ. On the linker command line, FP10.OBJ must appear before LIBC.LIB, LIBCMT.LIB, or MSVCRT.LIB. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Floating-Point Functions
|
| Aktuelle Daten dieser Seite | Letzte Änderung: |
| |