[Solved] How to add decimal to floating point number with non-decimal value [closed]


Nothing to stop this

float fun(float a)
{
    cout << fixed << setprecision(1);
    return a;
}

But that’s stupid code for a stupid puzzle. What does this have to do with real programming?

3

solved How to add decimal to floating point number with non-decimal value [closed]