Answers for "if statement float c++"

C++
0

check if float has decimals c++

if (some_float == (int)some_float) {
	// decimal part == 0.0 i.e. no fractional part
}
Posted by: Guest on September-14-2020
2

how to make a float in C++

public float whatYourFloatIsCalled = 0;
public float whatIsYourFloat;
Posted by: Guest on May-04-2020

Browse Popular Code Answers by Language