What type of number cannot be written as a fraction , where p and q are integers and q is not equal to zero?
A: All numbers can be written in this way
B: An irrational number
C: A decimal
D: A rational number