Store float inside scoreboard

I'm not sure if I even need what I wrote in the title, but my goal is to get the speed of the horse (speed attribute) on which the player is sitting and compare (><) it with another pre-prepared value. Are there any ways to do this?
Continue to help post