Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!ub.d.umn.edu!cs.umn.edu!ux.acs!clarson From: clarson@ux.acs.umn.edu (Chaz Larson) Newsgroups: comp.sys.mac.hypercard Subject: Re: more 2.0 probs - number precision, file operations Message-ID: <2786@ux.acs.umn.edu> Date: 30 Nov 90 15:12:21 GMT References: <009406E0.A248D460@OAVAX.CSUCHICO.EDU> Reply-To: clarson@ux.acs.umn.edu (Chaz Larson) Organization: Iron City, USA Lines: 19 In article <009406E0.A248D460@OAVAX.CSUCHICO.EDU> rgoldstone@OAVAX.CSUCHICO.EDU (Robin Goldstone) writes: |1) I have a card that represents an "invoice". The user fills in some |stuff and my script calculates the total invoice amount (i.e. adds up item |prices * quantities and calculates sales tax and total invoice amount). |All of a sudden the user noticed that sales tax was not being computed |correctly. Our sales tax is 6.025%. In my stack, I have: | put .0625 into taxRate |When I debug the script, the variable watcher shows that taxRate |contains .06. Has something changed regarding default number precision? |Where are my other two significant digits?! Do I have to somehow tell HC |what precision I want? Do you have a "set numberformat to 0.00" statement in there somewhere? chaz -- Someone please release me from this trance. clarson@ux.acs.umn.edu AOL:Crowbone