vb6中的round函数 [英] Round function in vb6

查看:821
本文介绍了vb6中的round函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在vb6中有一个旧项目。现在我们在其中使用圆函数。

问题是当我使用

Round(cSng(12.65),1)它给出结果12.6这是错误的当我使用Round(cSng(12.75),1)它给出结果12.8这是真的。

任何人都可以告诉我这方面的解决方案吗?

或者为什么会这样?

We have a old project in vb6. and now we r using round function in it.
Problem is when i use
Round(cSng(12.65),1) it gives result 12.6 which is wrong and when i use Round(cSng(12.75),1) it gives result 12.8 which is true.
Can any one tell me solution for this??
Or why this happens??

推荐答案

上的一些帖子这个主题 [ ^ ]肯定会帮助你。
Some of the posts on this thread[^] will certainly help you out.


这篇关于vb6中的round函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆