|
| From: | Carnë Draug |
| Subject: | [Octave-bug-tracker] [bug #38270] miscellaneous package: units conversion from degC to K fails with units 1.0 |
| Date: | Tue, 22 Oct 2013 18:29:19 +0000 |
| User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9 |
Follow-up Comment #24, bug #38270 (project octave):
So I got my hands on a MacOSX system to test this with the non-GNU units v1.00
and I get a different output from the one mentioned on message #4 (and one
very close to the GNU units):
$ units -v
units version 1.0 Copyright (c) 1993 by Adrian Mariano
This program may be freely distributed
usage: units [-f unitsfile] [-q] [-v] [from-unit to-unit]
$ units degC K
* 1
/ 1
$ units "degC(100)" K
unknown unit 'degC(100)'
conformability error
1 degC(100)
1 K
I then figured that this is not dependent on the units version, but on the
version of units data file. I found someone with a different version of MacOSX
and could replicate the output from message #4. The difference is in the
units.dat file (mentioned at the end of units man page):
/ $FreeBSD: src/usr.bin/units/units.lib,v 1.13 2002/07/09 08:47:03 joerg Exp
$
/ $FreeBSD: src/usr.bin/units/units.lib,v 1.19.2.1.2.1 2009/10/25 01:10:29
kensmith Exp $
I pushed another change (r12301) which tries both syntax of non-linear
conversion. There are a couple of tests in the function file so please run
"test units.m" and add your own as well.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38270>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |