The arithmetic function int() does not work in sh (AT&T Research) 93v-
2013-08-27

I get this:
ksh -c 'print -- $(( log2( int(pow(2,69) )) ))'
69

But it should print 'nan', as it does if I use explicitly an
intermediate integer variable:
ksh -c 'integer i; print -- $(( i=pow(2,69) , log2(i) ))'
nan

Tina
-- 
Tina Harriott  - Women in Mathematics
Contact: [email protected]
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to