
- C標準庫
- C庫 - 首頁
- C庫 - <assert.h>
- C庫 - <complex.h>
- C庫 - <ctype.h>
- C庫 - <errno.h>
- C庫 - <fenv.h>
- C庫 - <float.h>
- C庫 - <inttypes.h>
- C庫 - <iso646.h>
- C庫 - <limits.h>
- C庫 - <locale.h>
- C庫 - <math.h>
- C庫 - <setjmp.h>
- C庫 - <signal.h>
- C庫 - <stdalign.h>
- C庫 - <stdarg.h>
- C庫 - <stdbool.h>
- C庫 - <stddef.h>
- C庫 - <stdio.h>
- C庫 - <stdlib.h>
- C庫 - <string.h>
- C庫 - <tgmath.h>
- C庫 - <time.h>
- C庫 - <wctype.h>
- C程式設計資源
- C程式設計 - 教程
- C - 有用資源
C庫 - <math.h>
math.h 標頭檔案定義了各種數學函式和一個宏。此庫中所有可用的函式都將double作為引數,並返回double作為結果。
庫宏
此庫中僅定義了一個宏:
序號 | 宏及描述 |
---|---|
1 |
HUGE_VAL 當函式的結果可能無法表示為浮點數時,使用此宏。如果正確結果的幅度過大而無法表示,則函式會將errno設定為ERANGE以指示範圍錯誤,並返回由宏HUGE_VAL或其負值(-HUGE_VAL)命名的特定非常大的值。 如果結果的幅度太小,則返回零值。在這種情況下,errno可能設定或可能未設定成ERANGE。 |
庫函式
以下是math.h標頭檔案中定義的函式:
廣告