多选题 In the following line of code, what does the (int) represent?
number = (int)sensorReading;
  • A. Rounding the sensorReading variable to the nearest int.
  • B. Casting the sensorReading variable to the int data type.
  • C. Nothing; it is there as a comment.
【正确答案】 B
【答案解析】它将变量sensorReading类型转换为int类型。A和C不正确。