There is no double variable in midp1 or even midp2.But if u need to do this i think you should deal with the number as string anduse the substring fuction and calculate your number and then you conact itagain.