And if so, why do they have different bit patterns?I read a book that said data types have different bit patterns and I was like why do they have different bit patterns?
Do primitive data types have different bit patterns?
data types
Signed Integers can be represented using four different well-know bit patterns.  They can vary in their bit patterns by the number of bytes used to represent them, and the way those bytes are ordered (endianness).  Unsigned integers have their own bit patterns that are different from signed integers.Floating point numbers use an entirely different bit pattern representation.  Single-precision floating point looks like this:And double-precision floating point looks like this: