I doubt that that if structure is doing what you think. The comma does not belong in an if structure. Maybe && (logical and) is what you need there instead.
Try this with some different numbers:
int number = 450;
void setup()
{
Serial.begin(115200);
int tempNumber = number / 100;
tempNumber = tempNumber * 100;
Serial.println(tempNumber);
}
void loop()
{
}
Thanks for posting code properly on your first post. Few first time posters bother to read the guidelines. Good job.
Thank you guys so much, when I first posted this it didn't show up as normal code for some reason, but now it is like that. That's why I put the reply there are line breaks there.