From owner-freebsd-bugs Mon Feb 4 11:50:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A0F9E37B434 for ; Mon, 4 Feb 2002 11:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g14Jo1J48743; Mon, 4 Feb 2002 11:50:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5429A37B42A for ; Mon, 4 Feb 2002 11:44:35 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g14JiZ346652; Mon, 4 Feb 2002 11:44:35 -0800 (PST) (envelope-from nobody) Message-Id: <200202041944.g14JiZ346652@freefall.freebsd.org> Date: Mon, 4 Feb 2002 11:44:35 -0800 (PST) From: Ed Symanzik To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/34617: /usr/bin/units mangles temperature conversion Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34617 >Category: misc >Synopsis: /usr/bin/units mangles temperature conversion >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 04 11:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Ed Symanzik >Release: 4.4 >Organization: Michigan State University >Environment: FreeBSD hardy.cl.msu.edu 4.4-STABLE FreeBSD 4.4-STABLE #32: Thu Oct 11 10:19:10 EDT 2001 root@:/usr/src/sys/compile/ZIK i386 >Description: units results for temperature conversions is incorrect. units will not accept non-positive numbers. The problem is that temperature scales do not intersect at zero. There should be a way to note this in units.lib. Perhaps degC K +273 degF 5|9 degC +32 >How-To-Repeat: > units 497 units, 54 prefixes You have: 20 degC You want: K * 20 / 0.05 You have: 32 degF You want: degC * 17.777778 / 0.05625 You have: 0 degF units: unit reduces to zero You have: -9 degC unknown unit '-' >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message