Formating Floating point
Hi,
I try to format the output as 2 decimal place but result is
Multiplication test ... (0:n2)
Pls advise what went wrong. Code at end of msg.
Thanks & Regards,
Khiu
.................................................. ...
Private Sub btnIntMath_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnIntMath.Click
'Declare variable
Dim intNumber As Single
intNumber = 12
intNumber /= 7
MessageBox.Show("Multiplication test ..." & String.Format("(0:n2)", intNumber), _
"Floating point")
|