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

[Delphi] 如何將 float 轉成 integer??

0 views
Skip to first unread message

學習是通往另一世界的入口

unread,
Oct 24, 1999, 3:00:00 AM10/24/99
to

就是
1.1 => 1
4.567 => 5

若能四捨五入更好...

--
[0m [1;35m ◎ Origin: 中央松濤站□bbs.ee.ncu.edu.tw From: sj72-79.dialup.seed.net.tw [0m

想像的天空

unread,
Oct 24, 1999, 3:00:00 AM10/24/99
to
※ 引述《toysto...@bbs.ee.ncu.edu.tw (學習是通往另一世界的入口)》之銘言:
: 就是

: 1.1 => 1
: 4.567 => 5
: 若能四捨五入更好...
i:=Round(f); //有四蛇侮辱
i:=Trunc(f); // 沒..

--
※ [36;1m風信遊子 [35m(bbs.cm.nctu.edu.tw) [37m ★ [33mPost From: [34m cs-dial-port188-tpe.biglobe.net.tw [m★

0 new messages