From nobody@FreeBSD.org  Mon Feb  4 11:44:36 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 5429A37B42A
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <zik@msu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /usr/bin/units mangles temperature conversion
X-Send-Pr-Version: www-1.0

>Number:         34617
>Category:       misc
>Synopsis:       /usr/bin/units mangles temperature conversion
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 04 11:50:01 PST 2002
>Closed-Date:    Mon Feb 4 14:49:30 PST 2002
>Last-Modified:  Tue Feb  5 05:20:01 PST 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: greid 
State-Changed-When: Mon Feb 4 14:49:30 PST 2002 
State-Changed-Why:  
This is expected behaviour.  From units(1): 

The units program converts quantities expressed in various scales to 
their equivalents in other scales.  The units program can only handle 
multiplicative scale changes.  It cannot convert Celsius to Fahrenheit, 
for example. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34617 

From: Ed Symanzik <zik@msu.edu>
To: freebsd-gnats-submit@FreeBSD.org, zik@msu.edu
Cc:  
Subject: Re: misc/34617: /usr/bin/units mangles temperature conversion
Date: Tue, 05 Feb 2002 08:14:58 -0500

 I looked right over that.  I was expecting a notice like
 that to appear in the Bugs section.
>Unformatted:
