Date: Mon, 4 Feb 2002 11:44:35 -0800 (PST) From: Ed Symanzik <zik@msu.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/34617: /usr/bin/units mangles temperature conversion Message-ID: <200202041944.g14JiZ346652@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202041944.g14JiZ346652>