Decmimal calculation : Decimal « Data Type « VB.Net Tutorial

Home
VB.Net Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statements
5.Date Time
6.Class Module
7.Development
8.Collections
9.Generics
10.Attributes
11.Event
12.LINQ
13.Stream File
14.GUI
15.GUI Applications
16.Windows Presentation Foundation
17.2D Graphics
18.I18N Internationlization
19.Reflection
20.Regular Expressions
21.Security
22.Socket Network
23.Thread
24.Windows
25.XML
26.Database ADO.net
27.Design Patterns
VB.Net
VB.Net by API
VB.Net Tutorial » Data Type » Decimal 
2.12.5.Decmimal calculation
public class Test
   public Shared Sub Main
        Dim Dec1, Dec2 As Decimal
        Dec1 = 100
        Dec2 = 200
    
        Dec1 = Dec1 + Dec2
        Console.WriteLine(Dec1)
        Dec1 = --Dec1
        Console.WriteLine(Dec1)
        
        Dec1 = ++Dec2
        
        Console.WriteLine(Dec1)

   End Sub
End class
300
300
200
2.12.Decimal
2.12.1.Decimal.Compare
2.12.2.Decimal.Divide
2.12.3.Decimal.Floor
2.12.4.Decimal.GetBits
2.12.5.Decmimal calculation
2.12.6.Divide Decimal by double
2.12.7.MinValue and MaxValue of Decimal
2.12.8.Do calculation between Integer and Decimal
2.12.9.Converts Decimal numbers to UInt32 values using the explicit Decimal to UInt32 conversion.
2.12.10.Converts Decimal numbers to SByte values using the explicit Decimal to SByte conversion.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.