I'm reading a book on Real Analysis, which has the following definition of least upper bound:
The paragraph after the bullet points leads me to understand that the least upper bound of a subset of the reals is necessarily outside the set. The paragraph after that leads me to understand the least upper bound is inside the set.
Is it necessarily one or the other?
I'm thinking open sets like $(0,1)$ have a least upper bound of one, which is outside the set, and sets with closed bounds like $(0,1]$ have their least upper bound inside the set.
Am I understand understanding the concept of least upper bounds correctly, at least so far?