fix bug length function return int not float64
cbugg: close bug-756