Making sure number is converted correctly