
Data Structures – Primitives
Coding Blocks
00:00
How to Write a Floating Point Number?
For a floating point number, there's three parts of it that are going to be imported. One bit is reserved for the sign, 23 bits are reserved for the mantissa and eight bits for the exponent. The data structure of how you store this in memory does matter. Did you do realize that there's a such thing as negative and positive zero? Yes. It actually does matter. But more often than not, it doesn't really, don't matter. You know, technically you can get an operation that would producenegative zero. I'm going to try it out on my C code now; but I don't have a sharp dot with me to check that isn't broken.
Transcript
Play full episode