Hi, Bobbo
It work fine, thank you very much
"Bobbo" <(E-Mail Removed)>
??????:(E-Mail Removed)...
>
> cok119 wrote:
>
>> How can I add '+' or '-' before float value using
>> float.ToString(fotmat-string) ?
>> What's the format string should used ?
>
> Assuming you want the sign of the number to be displayed rather than an
> arbitrary '+', then try the following:
>
> a.ToString("+#.###;-#.###;0");
>
> Where 'a' is your variable. This is a format string with sections,
> separated by semi-colons. The first section (+#.###) applies to
> positive numbers, the second (-#.###) applies to negative numbers and
> the last applies to zero.
>