[問題] 請教vc++的cosine function

看板C_and_CPP (C/C++)作者 (不見血不歸)時間16年前 (2009/09/15 11:49), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
想請教使用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
%f ?
09/15 11:52, 1F

09/15 11:58, , 2F
XDDD 原來如此 感謝XDD
09/15 11:58, 2F
文章代碼(AID): #1Ahmx0CX (C_and_CPP)
文章代碼(AID): #1Ahmx0CX (C_and_CPP)