How to compare floats and ints

void Bins()
{
Serial.println("Start of the Bins"); 
int LightSensorB = 0;
LightSensorB = digitalRead(3);
String bolt= "--Null--" ;
weight = 32.5;
int val = 0;
// once the weight has been calculated we need to identify the bolt and then say the absolute position

// I'll make this part once I know more about the weights I expect to see

if ((weight >= 30) && (weight<=35))
{
  val = 0;
  bolt = "AL-0.500" ;
}

if ((weight >= 39) && (weight<=45))
{
  val = 14;
  bolt = "AL-0.750" ;
}
if ((weight >= 46) && (weight<=52))
{
  val = 28;
  bolt = "AL-1.000" ;
}