I've heard people talk about the Euler characteristic of a stack, and I understand that it is sometimes fractional. This tells me that it is not defined in any usual sense like $\sum (-1)^i\dim H^i(X)$. What is the definition? What are good references for this? What is the inspiration for the definition?