I am creating a program for a project that will help me learn visual basic. But when I work out how much a certain material is worth with dimensions. It come out with more t
You can use;
Math.Round([DECIMAL], 2)
If you want to round up you can use;
MidpointRounding.AwayFromZero
As an additional parameter to make;
Math.Round([DECIMAL], 2, MidpointRounding.AwayFromZero)
Hope it helps!
The Decimal.Round method will do the trick for you. You can specify the number of decimal places.