只需一步,快速开始
1970-1-1 08:00| 发布者: huanghai『文章』| 查看: 2974| 评论: 0
'自定义自四舍五入函数'解决ACCESS97以下版本不支持Round函数'解决Round"有名"的四舍六入现象
'参数: Number , 要进入四舍五入的数值'参数:N,要保留的小数位数,不足时以0补上
'用法:'Print myRound(1.4367, 2)'1.44Function myRound(Number As Double, N As Integer) As String myRound = Format(Int(Number * (10 ^ N) + 0.5) / (10 ^ N), "0." & String(N, "0"))End Function
评论
|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )
GMT+8, 2025-4-4 05:15 , Processed in 0.069806 second(s), 16 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.