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

[ad_1]

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

[ad_2]

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