To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 206
205  |  207
Subject: 
Soliciting comments (and help) with online form
Newsgroups: 
lugnet.publish
Date: 
Mon, 14 Dec 1998 05:58:10 GMT
Reply-To: 
cjc@newsguy^IHateSpam^.com
Viewed: 
614 times
  
Ok, been playing with a javascript form today and I think it's fairly
nifty.  No super-duper backend database or anything, but it does
fulfill a couple of the requests I've had so far for making selecting
quantities and items easier.

Here's the address of the form:

http://www.guarded-inn.com/lego/auction/test3.htm

Now, one thing I have noticed, and I don't quite understand it, is
this situation.  When I select this item:

Black 1x1 Shallow Cooking Pans w/Handle

And a quantity of 3, 7, 17, and some other higher odd numbers, but not
all of them, the math it does is wrong.  3 x .35 becomes 1.04, 7 x
.35 becomes 2.44, etc.  Any ideas why that is?  Or does it work for
other people?

Any comments and suggestions would be most appreciated.  I'm going to
put it away for the night and play with Photoshop - need to pretty
things up a bit since I'm actually paying for this site. :)


--
Unofficial listing of weekly US Lego Shop at Home phone specials
http://www.lugnet.com/lsahs/  (discontinued thru Holiday season)
800-835-4386 (S@H USA) / 800-267-5346 ext 222 (S@H Canada)
www.lugnet.com/news/ - Focused discussion groups for LEGO fans worldwide



Message has 2 Replies:
  Re: Soliciting comments (and help) with online form
 
(...) 3,7,17 are all prime numbers - maybe that helps. lessee: 2,3,5,7,11,13,17,19.... Not any particular order in the way they're picked from that row, I think. Do you run on P60 w/bug, by any chance? Or it could just be binary/decimal conversion (...) (26 years ago, 14-Dec-98, to lugnet.publish)
  Re: Soliciting comments (and help) with online form
 
(...) Roundoff error? Do your math in pennies and divide by 100 at the last minute. This is a known problem in some languages. Since decimal fractions are repeating binimals when represented in binary (that is .3 is not a closed form sum of any (...) (26 years ago, 14-Dec-98, to lugnet.publish)

10 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR