In this Unreal 5 Beginner friendly tutorial you will learn a different way to add a sprint and stamina recharge system to your game. Alone the way, we use and talk about floating point numbers and how to properly compare them.
https://dev.epicgames.com/community/learning/tutorials/awyz/epic-for-indies-unreal-engine-5-tutorial-sprinting-and-stamina-with-floating-point-numbers