in both places

1 is in the closed interval but not the open interval; 0.99999999999999999999999 (without the ellipsis) is in the open interval, no matter how many 9s you tack onto the end. Or so I thought.