silverlight 5.0 - Scientific notation XAML -
i'm using scientific notation in xaml. do:
<textbox text="{binding path=celularidad_cfu, stringformat='e6'}"/>
the problem 1710000 showing: 1.710000e+006, correct see 1.71e+6. how specified in xaml? (not in code)
i believe should use g format specifier (almost) want.
<textbox text="{binding path=celularidad_cfu, stringformat='g'}"/>
within range (different different number types, see link) number displayed in normal notation. large or small enough values, values displayed without trailing zeroes , 2 exponent digits.
examples float
:
1340000 => 1340000 13400000 => 1.34e+07 0.00054 => 0.00054 0.000054 => 5.4e-05
Comments
Post a Comment