Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!caen!math.lsa.umich.edu!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!ub!acsu.buffalo.edu From: cloos@acsu.buffalo.edu (James H. Cloos) Newsgroups: comp.sys.handhelds Subject: Re: (HP48SX) CONVERT Replacement, Standalone Version (LONG) Keywords: HP48SX, hp48sx, CNVRT, CONVERT Message-ID: <75433@eerie.acsu.Buffalo.EDU> Date: 8 May 91 00:39:42 GMT References: <69288@eerie.acsu.Buffalo.EDU> <282336be:2661.1comp.sys.handhelds;1@hpcvbbs.UUCP> Sender: news@acsu.Buffalo.EDU Organization: State University of New York @ Buffalo Lines: 41 Nntp-Posting-Host: vodalus.acsu.buffalo.edu In article <282336be:2661.1comp.sys.handhelds;1@hpcvbbs.UUCP> akcs.tasmith@hpcvbbs.UUCP (Ted A Smith) writes: >I'm not sure if you care, but the following indicates a bug in your >otherwise usefull package: > >{ 10_ft 3_in} > 1: { 10_ft 3_in } >{ 0_yd 0_cm } CNVRT > 1: { 3_yd 38.42_cm } >0_cm CNVRT > 1: 312.74_cm >{ 10_ft 3_in} > 2: 312.74_cm > 1: { 10_ft 3_in } >0_cm CNVRT > 2: 312.74_cm > 1: 312.42_cm ARGH! I've not yet been able to determine exactly where the problem is, though the error certainly appears at the point where { 3_yd 38.42_cm } is returned. (That should be 38.1_cm, not 38.42_cm.) I cannot figure out why an extra .32_cm was added. Unfortunately I do not have my copy of the src available just now to look at it. (I've only a copy I passed thru rplc, which currently has a quite limited symbol table; consequently I had to type in the words by address, as per the posting.) A note to anyone using this: I can only get this error to occur when mixing metric and US units in one list, and the error only happens when converting to a list, NEVER when converting to a single unit. I will look into thes further. Perhaps using extended reals will alleviate the problem, but that may make the code quite longer--I had hoped to make this as small and unassuming as I could. -JimC -- James H. Cloos, Jr. Phone: +1 716 673-1250 cloos@ACSU.Buffalo.EDU Snail: PersonalZipCode: 14048-0772, USA cloos@ub.UUCP Quote: <>