Normalize Speed

If i get the speed of my b2Body:

speed = body.GetLinearVelocity().Length()

How can i normalize the speed value so its between 0 and 1? I ask as i don't know the maximum speed that my body can reach? I would just do speed/maxSpeed normally, however i don't know how to determine maxSpeed? How can you set maxSpeed?

Any help is appreciated 🙂
speed *= 0.01; //Reduction factor.
if (speed > 1) speed = 1;
b2Vec2's have a Normalize() method that sets the length of the vector to exactly one and returns the previous length. They also have a Multiply() method that can be used to set the new length of the vector.

Original thread: https://box2d.org/forum/viewtopic.php?t=1458