I have some values in type of double such 0.00009 , 0.0000007, when I want
to show them in a text box and convert them to string they are changed to
scientific notation while I want to show them as they are.
I tried to use tostring("f") but it needs to have a precision number after
*f* which will cause always have fix number of characters (for example if
use f10 then 0.09 is converted to 0.09000000 while I need to show it as
0.09).
do you any suggestion of how I can convert such a numbers to string and show
them as they are not as scientific notation?
Thanks for any feedback
Mary Chipman - 14 Oct 2004 20:06 GMT
See the Help topic "Standard Numeric Format Strings", which lists all
of the format specifiers you can use to get your numbers to display
the way you want them to.
--Mary
>I have some values in type of double such 0.00009 , 0.0000007, when I want
>to show them in a text box and convert them to string they are changed to
[quoted text clipped - 7 lines]
>
>Thanks for any feedback
masoud bayan - 14 Oct 2004 20:15 GMT
Thanks for your reply.
I have seen that before but could not find any answer for this question.
Masoud
> See the Help topic "Standard Numeric Format Strings", which lists all
> of the format specifiers you can use to get your numbers to display
[quoted text clipped - 13 lines]
> >
> >Thanks for any feedback
Josip Medved - 14 Oct 2004 21:33 GMT
> I have some values in type of double such 0.00009 , 0.0000007, when I want
> to show them in a text box and convert them to string they are changed to
[quoted text clipped - 7 lines]
> show
> them as they are not as scientific notation?
ToString("0.########")

Signature
Pozdrav,
Josip Medved, MCSD
http://www.jmedved.com
masoud bayan - 15 Oct 2004 14:03 GMT
Thanks Josip,
Your reply is exactly what I need!
It is much more helpful than the suggestion >> *See the Help topic "Standard
Numeric Format Strings", *
Masoud
> > I have some values in type of double such 0.00009 , 0.0000007, when I want
> > to show them in a text box and convert them to string they are changed to
[quoted text clipped - 9 lines]
>
> ToString("0.########")