佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1343|回复: 5

VB6 Decimal Point 后的 Value

[复制链接]
发表于 8-1-2012 05:04 PM | 显示全部楼层 |阅读模式
请问下怎样拿 VB6 Decimal Point 后的 Value?

E.g.

99.01 => 01
100.55 => 55

谢谢...
回复

使用道具 举报


ADVERTISEMENT

发表于 14-1-2012 12:32 PM | 显示全部楼层
cint()  ....
回复

使用道具 举报

发表于 3-2-2012 10:21 AM | 显示全部楼层
应该是Abs() + Int() 或 Fix()罢。。
回复

使用道具 举报

发表于 16-2-2012 05:27 PM | 显示全部楼层
double org = 99.01
double result = (org - (int)org)*100

这样可以吗?
回复

使用道具 举报

发表于 16-2-2012 08:25 PM | 显示全部楼层
i = 99.01
string result = right(cstr(i), len(cstr(i)) - instr(cstr(i),"."))
回复

使用道具 举报

发表于 14-3-2012 09:59 AM | 显示全部楼层
Dim i As Double
i = 99.01
Dim s As String
s = CStr(i)
Dim ss() As String
ss = Split(s, ".")
MsgBox ss(UBound(ss))
回复

使用道具 举报

Follow Us
您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 2-11-2025 08:29 AM , Processed in 0.113401 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表