- 积分
- 24557
- 明经币
- 个
- 注册时间
- 2004-3-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-9-5 23:59:00
|
显示全部楼层
Function getnumber(num As Double, index As Integer) As Double Dim str As String, m As String str = CStr(num) m = InStr(str, ".") getnumber = Mid(str, m + index, 1) End Function
Function getreal(num As Double, index As Integer) As Double Dim m As Long, n As Double m = num * (10 ^ index) n = m getreal = n / (10 ^ index) End Function
|
|