Computers store all numbers in binary format using a base-2 system of 0s and 1s to represent the on and off states of transistors. There are different types of numbers that can be stored, including integers which can be unsigned or signed at the cost of one bit of precision for the sign, and floating point numbers which are optimized for fractional values using scientific notation format with sections for the sign, exponent, and mantissa/significant digits. Floating point numbers specifically have single precision floats stored in 1 bit for the sign, 8 bits for the exponent, and 23 bits for the mantissa, while double precision doubles are stored with 1 bit for the sign, 11 bits for the exponent, and 52 bits for the mant