Groups
Groups
Sign in
Groups
Groups
tw.bbs.comp.oop
Conversations
About
Send feedback
Help
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
請教 轉型 (single to int use c#)
0 views
Skip to first unread message
告別式
unread,
Nov 20, 2003, 8:42:35 PM
11/20/03
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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