Hi, can someone tell me what is wrong in this function: ilecyfr=function(x){ if (x=0){ return(1) } else { k=0 while (abs(x)/10^k >0) { k=k+1 } return(k) }} -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-tp4649082.html Sent from the R help mailing list archive at Nabble.com.