Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

int dtoi(double)............help

0 views
Skip to first unread message

Zzzzzzzz

unread,
Dec 23, 1998, 3:00:00 AM12/23/98
to

請問目前在 window 平台上的 VC++ 是否有提供
類似 int dtoi(double) 功能的 function.

原先的 code 是這樣 (可在 IBM workstation 上 run)
*s = dtoi((0.01*min_s*(double)tid));

我目前的改法是,
*s = (int)((0.01*min_s*(double)tid)) + 1;

不過我還是很好奇為何當初那人會去用 dtoi 這 function?
還有為何 VC++ 沒有 support? (也許可能有其他的名稱)


--

Telnet 140.112.8.172 (titan.cc.ntu.edu.tw)

--
※ Origin: 程式設計樂園 ◆ From: arbor.ee.ntu.edu.tw

0 new messages