Hi 佑煊,
Do you use CW10.6 ?
In you screenshot , where show the float error ?
And about the float configuration on CodeWarrior, you can select on here :

And i have test on my side (mk21fn1m0 - CW10.6), when define like your code (float tt; tt = 2.0f), it can work well.
So could you show detail the float error .
Best Regards,
Alice
------------------------------------------------------------------------------------------
If this post answers your question, please click the Correct Answer button.
-----------------------------------------------------------------------------------
If this post help your question, please click the helpful Answer button.