I needed to display the $B value in a string. After I used $C=$B and then used the $C for the string funtion, all problems in the calculaton where gone.