Floating Point AppletEnter a decimal (real) number into the field labeled "Decimal" and press "toFloat" to convert it into the "IEEE 754 floating point single-precision" bit layout. Enter "NaN" into the field labeled "Decimal" and press "toFloat" to see how Not-a-Number values are represented in IEEE 754. Enter "Infinity" or "-Infinity" into the field labeled "Decimal" and press "toFloat" to see how the bits for infinite values are represented in IEEE 754. © 2001 Werner Randelshofer Exponent notes... 0.25 has an exponent of 0111 1101 0.5 has an exponent of 0111 1110 1 has an exponent of 0111 1111 1.99 rec is the largest "small number" with an exponent of 0111 1111 2 has an exponent of 1000 0000 4 has an exponent of 1000 0001 8 has an exponent of 1000 0010 Does the pattern continue? |