My question is: Suppose you have computed an algorithm that gives the number of iterations and you would like to print the number of iterations out. But the output always many d
The function as.integer() truncate the number up to 0 order, so you must add a 0.5 to get a proper approx
as.integer()
dd<-64.00000000 as.integer(dd+0.5)