[問題] 請教vc++的cosine function
想請教使用cosine(pi)的情形
#include "math.h"
#include "stdio.h"
main()
{
printf("%d \n", cos(3.1416));
return(0);
}
結果是 -243058 請問大大要如何修改
新手發問 不好意思@@ 感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.244.132.1
推
09/15 11:52, , 1F
09/15 11:52, 1F
→
09/15 11:58, , 2F
09/15 11:58, 2F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章