Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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??
Posted

1 solution

Some of the posts on this thread[^] will certainly help you out.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900