pi ends with the digit 9, followed by an infinite sequence of other digits.
That’s a very interesting use of the word “ends”.
TBF, if your goal is to generate the most valid sentence that directly answers the question, it’s only one minor abstract noun that’s broken here.
Edit: I wouldn’t be surprised if there’s a substantial drop in the probability of a digit being listed after the leading 9 (3.14159…), even, so it is “last” in a sense.
Edit again: Man, Baader-Meinhof so hard. Somehow pi to 5 digits came up more than once in 24 hours, so yes.
It’s like how they called the fourth Friday the 13th movie “The Final Chapter”.