Visual basic

2006-12-09 10:03 pm
wt's the use of
CDbl
in VB?
answer in chinese

回答 (1)

2006-12-09 10:57 pm
✔ 最佳答案
將一個變數的性質轉換為隻精準數(double), 例子如下:
dim a as string
dim b as double
a = 1
b=cdbl(a) ' b is 1.0000000000.....
a = "test"
b=cdbl(a) ' 發生錯誤, 因為a的值不能轉至雙精準數.
參考: me


收錄日期: 2021-04-23 16:25:35
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061209000051KK02347

檢視 Wayback Machine 備份