Truncating and Rounding Off Numbers

In this beginner's lesson we show you how to reduce the number of Decimal Places on the Result Answers from Mathematical Formulas and Calculations.

Often results from dividing values turn out to have far too many decimal places to be useful.

In this lesson we make a simple program which demonstrates two Visual Basic methods of Rounding Off.

The coding techniques provided in this lesson will be useful for many Applications that we will be building during our VB Programming Course.


LESSON OVERVIEW

This lesson consists of a Video Presentation where we cover the following:

- Introduction and Overview
- Review of the Mathematics of Rounding Off
- Demonstration of finished Visual Basic Program
- Blood Alcohol Content Rounding Off to 4 decimal places
- Rounding Off to 2 Decimal Places - Program Code
- Truncation and how it differs from Rounding Off
- Using Google and Stack Overflow for Coding Issues.

 

Watch the following YouTube Tutorial Video of the Full Lesson

If you would like to get a FREE copy of the Presentation Slides covered in this video, then click the link below.

Click Here to Download the Presentation and Program Code

 

Click here to Return to the Programming Course Page