add new floating point function

@yilongli please review