floor(log(8)/log(2))
include <math.h> double n= 0.02;y= floor ( log(n)/log(2)) + 1;printf("%lf\n",y);用函数“地板”取下