Should i use if else for example if(r==float){
}
and which part of the codes i have to check.