add CalFloat remove some not related codes