c++ float decimal = num - (int)num; code example Example: how to make a float in C++ public float whatYourFloatIsCalled = 0; public float whatIsYourFloat;