?
Solved

Doing Heavy Math

Posted on 1999-06-23
3
Medium Priority
?
226 Views
Last Modified: 2010-05-02
Is there a way to overload the math operations. In other words can I make the progra do all of it's math using floats or doubles or bytes? Is there a way to control that?
0
Comment
Question by:enoch100
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
mark2150 earned 200 total points
ID: 1519284
Math follows the datatype of the vars. Certain math operators are type specific. Internally most all math is done in double precision reals.

M

0
 

Author Comment

by:enoch100
ID: 1519285
So how do I know? Where can I get that info?
0
 
LVL 18

Expert Comment

by:deighton
ID: 1519286

here's an example

dim i as long


i = 1000 * 100    'gives an errro

i = 1000 * 1000&



so suffix your numbers

10%    -    integer
1000&   -   long integer

3.14159265# - double


you can convert types using CLng, CInt,Cdbl etc.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

719 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