This project has moved. For the latest updates, please go here.

DoubleUpDown accuracy problem

Jul 18, 2013 at 8:46 AM
Try using the following:
<xctk:DoubleUpDown AllowSpin="True"
                   FormatString="F16"
                   Increment="0.01"
                   Minimum="0.0"
                   Maximum="1000.0"
                   MouseWheelActiveOnFocus="True"
                   SelectAllOnGotFocus="False"
                   ShowButtonSpinner="True"
                   TextAlignment="Right"
                   Margin="8,0"
                   Grid.Column="1"
                   HorizontalAlignment="Left"
                   Focusable="False"
                   MinWidth="100"/>
If you keep pressing one of the buttons, after a while the actual value increase slightly differs from the Increment value. Is this expected? I thought double values have 15-16 digits accuracy.
The same thing does not happen with DecimalUpDown.
Dec 4, 2013 at 6:48 PM