Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel vba

ResolvedVersion 2003

Bob has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course

Excel VBA

In reality when should a double be used instead of single?

RE: Excel VBA

Hi Bob

A variable type Single will hold pretty large numbers.

Bu as a default excel treats numbers entered into worksheets as Doubles.

I have talked to some people who say the extra precision Doubles provide means most algorithms don't need to be optimized for prevention of rounding error. This means that if you use Doubles the numbers will be more accurate in the long run.

So the general consensus is that although Double takes up more memory space it deals with the numbers faster and more accurately than Single

Hope this helps

Carlos

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Showing all menu items

If you go into a pull down menu you usally find that you get a selection of items(this is the default) or sometimes everything. If you only get a selectiopn you have to go to the double arrows at the bottom of the menu and click it to get all of the hidden items.
To turn this off so that you always get everything, go to Tools / Customize / Options Tab / "Always show full menus". Make sure there is a tick in the box and you will always have every item.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.