Solved

round() in VB4 ?

Posted on 1998-01-13
3
278 Views
Last Modified: 2008-03-06
Is there a function in VB4 like Pascal's round() function ?
0
Comment
Question by:frey
3 Comments
 
LVL 12

Expert Comment

by:Trygve
ID: 1450720
If you rise the points I can give you a function that will do this for you.
0
 
LVL 2

Accepted Solution

by:
PedroMVGomes earned 20 total points
ID: 1450721
these is so little points...but this site is about helping each other so there it goes.

There is no such function, but you can use this

Function Round(byval Num as Double)as Long
   
   Round=int(Num+0.5)

End Function
0
 

Author Comment

by:frey
ID: 1450722
Adjusted points to 20
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now