Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: DoubleUpDown handles 0 and .1 weird [22210]

$
0
0
When setting the increment to .1, when I shift up and down and pass and .1 it displays -1.38777878078145E-16 for 0 and 0.0999999999999999 for 1
Comments: ** Comment from web user: BoucherS **

Hi,

Try adding a FormatString, something like :
```
<xctk:DoubleUpDown Value="0" Increment="0.1" FormatString="{}{0:N1}"/>
```


Viewing all articles
Browse latest Browse all 4964

Trending Articles