Fixed bug for float variable. printed out float and int.