Re: Up/down value conversions



Hello Mike,

Greetings,

We are using an up/down control to facilitate numeric data entry,
however, we are noticing issues converting from the up/down value
(apparently a Decimal) to the units we are working with (Double) and
vice versa. There appear to be precision issues, and then we take
those numbers and scale them according to our application
requirements. Needless to say, the results are anything but what we
might expect. We could be doing some wacky scaling, but
notwithstanding that, is there anything we can do to help clean up the
conversion between Decimal and Double? Or is the answer to provide a
control that better-supports a Double-compatible input? Any
suggestions are welcome. Thanks in advance.

How are you converting from the Decimal to Double currently?

--
Jared Parsons [MSFT]
jaredpar@xxxxxxxxxxxxxxxxxxxx
All opinions are my own. All content is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • Up/down value conversions
    ... We are using an up/down control to facilitate numeric data entry, ... we are noticing issues converting from the up/down value ...
    (microsoft.public.dotnet.framework)
  • Up/down value conversions
    ... We are using an up/down control to facilitate numeric data entry, ... we are noticing issues converting from the up/down value ...
    (microsoft.public.dotnet.framework)
  • Re: [patch 0/3] dynamic_printk: new feature
    ... far worse with compile-time debugging selection. ... Have you considered the feasibility of ploddingly converting each of those ... Your design handles a boolean on/off control. ...
    (Linux-Kernel)
  • RE: Login control - image button with text over it
    ... The one bad thing about converting to a template is we lose all of the .NET ... translations for the text in the control. ... set the background image effect. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Military planes and paraphernalia rest in place of honor
    ... several volunteers have been converting the old terminal and control ... tower into a museum with about a dozen military airplanes, ...
    (soc.veterans)

Quantcast