Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Up/down value conversions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 29 Jun 2006 18:43 GMT
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.

Regards,
Michael Powell
Jared Parsons [MSFT] - 29 Jun 2006 23:41 GMT
Hello Mike,

> Greetings,
>
[quoted text clipped - 9 lines]
> 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@online.microsoft.com
All opinions are my own. All content is provided "AS IS" with no warranties,
and confers no rights
Mini-Tools Timm - 03 Jul 2006 17:21 GMT
> Greetings,
>
[quoted text clipped - 9 lines]
> Double-compatible input? Any suggestions are welcome. Thanks in
> advance.

Try using Convert.ToDouble( decimal val )

Signature

Timm Martin
Mini-Tools
.NET Components and Windows Software
http://www.mini-tools.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.