Depends on the book/subject. Will you ever reference it later on in your life? I love my textbooks and am always digging them up. I would recommend buying them used online for super fucking cheap. Or don't buy/rent one at all - at least half of the classes out there can be passed without a book.
/e buy used online, not from the campus book store.