Formatting numbers
-
I'm making a small program wich has to be used to input bills. Becuase of this, it will have to format numbers for me. Now, for example When I my input is 3.50 then my output has to be 3,50 AND NOT 3500!!!!! So my question is, how do you format numbers so that the "." becomes a "," ??? :confused: <<>>
-
I'm making a small program wich has to be used to input bills. Becuase of this, it will have to format numbers for me. Now, for example When I my input is 3.50 then my output has to be 3,50 AND NOT 3500!!!!! So my question is, how do you format numbers so that the "." becomes a "," ??? :confused: <<>>
vb6 ?
Dim n n = 3500 MsgBox FormatNumber(n, 0, , , vbTrue)
-
vb6 ?
Dim n n = 3500 MsgBox FormatNumber(n, 0, , , vbTrue)
I think you dont get my question well... When you enter a value (for example totall bill) most people don't use a "," but a "." . But if you enter a "." in VB, he will read it as a thousand sign, so 3.50 -> 3500 . But, I want him to make a value of it so 3.50 -> € 3,50 . Eventually without the €-sign !! I hope you could now help me better ( by the way, it has to work with textboxes and not with msgboxes!!! ) (¯`·._.·[eRiK]·._.·´¯)
-
I'm making a small program wich has to be used to input bills. Becuase of this, it will have to format numbers for me. Now, for example When I my input is 3.50 then my output has to be 3,50 AND NOT 3500!!!!! So my question is, how do you format numbers so that the "." becomes a "," ??? :confused: <<>>
maybe this function i made can help. this is for vb.net, hopefully thats wut ur using. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetEuros(ByVal num As Double) As String Dim tempNum As String = Format(num, "n") tempNum = tempNum.Replace(".", ",") Return tempNum End Function (...) Dim myNum As Double = 54.25 text1.text = GetEuros(myNum) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< this makes text1.text = 54,25. ------------------------ Jordan. III