Hi All i am assining a value from text box to string.
In text box i entered the value as 0.00000005 , but when i assign the value in string it is assigning as "5E-08".I dont want to change the value.Please advice , i am using VB language.
Below the code for your reference :
string Amount = Trim(txtAmount.Text)
Loading
SanthonabinPosted Feb 25, 2011, 5:04 AM
Dim Amount as string
Amount=txtAmount.Text.Trim
GaryPosted Feb 24, 2011, 2:11 PM
Suthish NairPosted Feb 23, 2011, 2:29 PM
What you trying to do, attach the actual line code.
Where this value ("5E-08") getting saved.
Jaganathan BantheswaranPosted Feb 23, 2011, 6:29 AM
Style argument
Explanation
Example
General Number
To display the number without having separators between thousands.
Format(8972.234, "General Number")=8972.234
Fixed
To display the number without having separators between thousands and rounds it up to two decimal places.
Format(8972.2, "Fixed")=8972.23
Standard
To display the number with separators or separators between thousands and rounds it up to two decimal places.
Format(6648972.265, "Standard")= 6,648,972.27
Currency
To display the number with the dollar sign in front, has separators between thousands as well as rounding it up to two decimal places.
Format(6648972.265, "Currency")= $6,648,972.27
Percent
Converts the number to the percentage form and displays a % sign and rounds it up to two decimal places.
Format(0.56324, "Percent")=56.32 %
Use the format method to have the exact value.
Example:
string Amount = Format$(Trim(txtAmount.Text,"General Number")) or like this.