ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 8th, 2012, 10:56 PM
mslee65 mslee65 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 mslee65 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 16 sec
Reputation Power: 0
Unhappy Numbers rounding up automatically!!!

I'm running ASP Classic pages on IIS 6.1 on Windows Server 2008 R2, with an MSAccess DB as my backend (don't ask why). Well, all of a sudden, any decimal value entered into any form is being automatically rounded up to the next integer (for example, 1.25 is stored in the DB as 1, and 1.75 is stored at 2). Nothing in my DB has changed for the data type (currently set to Double with 2 decimal places). Nothing complex in the code, not doing any calculations or data/variable manipulations. Here's my actual code:

<input type="text" name="UnitCost" id="UnitCost" size="10" value="<%= (AW_Products.fields.item("UnitCost").value)%>"tabi ndex="9"/>

upd_AW_Products.addColumn "UnitCost", "NUMERIC_TYPE", "POST", "UnitCost"
upd_AW_Products.addColumn "UnitPrice", "NUMERIC_TYPE", "POST", "UnitPrice"


I have multiple sites running on this same environment and they are all doing the same thing. Is there a global variable is IIS or the Server that controls Precision or Scale outside of the database? This is driving me crazy because on the surface it seems like such a simple DB field type issue. Any help would be greatly appreciated.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Numbers rounding up automatically!!!

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap