Link to home
Start Free TrialLog in
Avatar of enoch100
enoch100

asked on

Doing Heavy Math

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?
ASKER CERTIFIED SOLUTION
Avatar of mark2150
mark2150

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of enoch100
enoch100

ASKER

So how do I know? Where can I get that info?

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.