Register
Login
Home
Code Complete
Download
Purchase
Your Cart
Forum
Services
Contact us
Tuesday, January 06, 2009
Web
Site
Forum
Unanswered
Active Topics
Forums
Search
Members
Forums
>
Code Complete
>
Support
Numeric
Last Post 13 Aug 2008 05:08 PM by
Ed Reyes
. 2 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Ed Reyes
New Member
Posts:5
13 Aug 2008 12:15 AM
I created some columns in a table that are numeric(18,4) and I am treating them like Single precision floating point values. I had to change the ValidationManager.IsNumneris function to Single.Parse calls and now I see that the data is rounding the values to the right of the decimal point. 0.375 becomes 0.0000 and 5.900 becomes 6.0000.
Why am I losing precision?
eurowise
Basic Member
Posts:107
13 Aug 2008 07:41 AM
I have put the source code for the Code Complete Services class library in the download area. It is available only for subscribers. You can download it and modify it if you want. It is in VB.NET for the moment. We will look at this issue for the next release.
Philip
Ed Reyes
New Member
Posts:5
13 Aug 2008 05:08 PM
Does definition of columns as decimal work better then numeric columns?
What do you recommend that I define my floating point columns as to work with your code generator?
Ed
You are not authorized to post a reply.
Code Complete
--Dedicated to the latest news and announcements
--Tips and Tricks
--Code Complete Templates
--Testimonies
--Wish list
--General
--Support
Default Group
--Default Forum
Forums
>
Code Complete
>
Support
Active Forums 4.0
(c) 2009 - Eurowise Soft - Code Complete, The code generator.
|
Terms Of Use
|
Privacy Statement