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

請教 轉型 (single to int use c#)

0 views
Skip to first unread message

告別式

unread,
Nov 20, 2003, 8:42:35 PM11/20/03
to
我在.Net Framework 1.0時
將浮點數轉整數 Int32.Parse(SingleTypeValue)
並沒有問題
但昇成 .Net FrameWork 1.1時
就會出現Bug...
現在的做法是轉型前先除去小數點後之值
先做 boxing 成 String 再用Substring
但有沒有更聰明的做法 ??
謝謝啦
--
[m※ Origin: 雲林科技大學藍天使 <bbs.yuntech.edu.tw> [From: 203.73.168.44]
0 new messages