A quick workaround:
1. Draw a Rectangle shape and punch in the length number you want to both length and width.
2. Convert it to a spline.
3. In Segment mode delete the segments you don't want.
You are left with line segments that are the length you originally entered.
A slower workaround:
1. Draw a straight line segment.
2. Go to Edit menu -> Transform Type-In..
3. Press S to turn on snaps (if not on already).
4. In vertex mode, select the right-most point of the line, drag it and snap it to the first point.
5 On the Transform Type-In, enter the length you want in the direction you want and press enter. If you want to go in negative direction, just put - sign before the number.
I give you the second one mainly to introduce the Transform Type-in tool, which is extremely helpful for precise transforms. But - WILDLY - it does not have a default hotkey! It also cannot be docked in a custom layout 😩, so I made a little script that opens it when I open Max.