How to fix the calculation? : So the following is the code that I am working on. Everything works the way that I want it to except for the function "tipConvert(tip)". I want it to change a number, such as 15, into .15 which would be decimal representation of a percentage.

#include <stdio.h>
 
float tipConvert(int tip);
 
int main(){
	
	char value;
	int intValue tip;
	float bill, result;
 	
 	intValue = 1;
 
 	while(intValue == 1)
	{
	printf("Would you like to calculate a tip: y or n?\n");
	scanf("%s", &value);
	
	if(value == 'y')
	{
		printf("Enter the bill amount:\n");
		scanf("%f", &bill);
		printf("Enter the tip amount as an integer:\n");
		scanf("%i", &tip);
		result = tipConvert(tip)*bill;
		printf("Tip for %.2f is %.2f\n", bill,result);
	}
	else if(value == 'n')
	{
		printf("Thank you for using Tip Calculator.");
		break;
	}
	else
		printf("Please select y or n.\n");
		
	}
	return 0;
}

float tipConvert(int tip)

{

	return tip / 100;

}