move some bcmath function to tc_struct static method