Round Value in VB.Net (E.g."3.9")
Know More :
ASP.Net VB.Net
C#.Net
Sliverlight
XML
WPF
WCF
Ajax

Imports System
Imports System.Data
Imports System.Diagnostics
Public Class Form1
Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX1.Click
Dim d As Decimal = CDec(TextBoxX1.Text)
TextBoxX2.Text = Math.Round(d)
End Sub
End Class
Thanks.
Know More :
ASP.Net VB.Net
C#.Net
Sliverlight
XML
WPF
WCF
Ajax

Imports System
Imports System.Data
Imports System.Diagnostics
Public Class Form1
Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX1.Click
Dim d As Decimal = CDec(TextBoxX1.Text)
TextBoxX2.Text = Math.Round(d)
End Sub
End Class
Thanks.
Know More :
No comments