Tina Harriott
2013-09-03 02:35:56 UTC
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
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: tina.harriott.math at gmail.com
Tina Harriott - Women in Mathematics
Contact: tina.harriott.math at gmail.com