Solved

round() in VB4 ?

Posted on 1998-01-13
3
298 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb6 connector to mongodb 2 120
VBA Shell can't Find Word document 11 112
MsgBox 4 68
how to loop through and process two columns in excel 8 22
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

856 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