新增文章
文章标题
分类
C#
云星空
K3 BOS
K3 功能
用友
Oracle
python
SQL
MySql
PHP
HTML
script
windows
Access
影视后期
财务
服务
生活
内容
方法1:使用Val函数将单个文本转换为数字。 Dim text As String Dim number As Double text = "123.45" number = Val(text) MsgBox number 方法2:使用CDec函数将文本转换为十进制数。 Dim text As String Dim number As Decimal text = "123.45" number = CDec(text) MsgBox number 方法3:使用CDbl函数将文本转换为双精度浮点数。 Dim text As String Dim number As Double text = "123.45" number = CDbl(text) MsgBox number
返回
保存