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

New Post: DoubleUpDown accuracy problem

$
0
0
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.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>