[prev in list] [next in list] [prev in thread] [next in thread]
List: ast-developers
Subject: [ast-developers] math using float compound variable members no longer works...
From: Roland Mainz <roland.mainz () nrubsig ! org>
Date: 2013-08-28 0:52:02
Message-ID: CAKAoaQnjwJhfsFcZjaqgFgffxa0n3sE4OnrvM2MA+QEMUHNA5g () mail ! gmail ! com
[Download RAW message or body]
Hi!
----
Running the following testcase (derived from the "termclock.sh" demo -
see http://svn.nrubsig.org/svn/people/gisburn/scripts/termclock.sh)
with ast-ksh.2013-08-14 on SuSE 12.3/AMD64/64bit returns the wrong
result:
-- snip --
$ ksh -c 'compound v=( float v. s . ) ; function f { nameref h=$1
; print -- $(( (h.v/h.s)-90. )) ; } ; f v'
-90
-- snip --
ksh93u+ 2012-08-01 prints the correct result:
-- snip --
$ /usr/bin/ksh -c 'compound v=( float v. s . ) ; function f {
nameref h=$1 ; print -- $(( (h.v/h.s)-90. )) ; } ; f v'
-89.5
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz@nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
ast-developers@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic