Define Floating-Point Literals (Exercise)
00:00 This exercise is somewhat similar to the previous one because it also involves numeric literals, but focuses on floating-point numbers instead of integers.
00:10 Floats, if you recall, are numbers with a fractional part, which have a different representation in the computer’s memory. So in this case, you are going to define this number using the so-called E notation, which is short for exponential notation, also known as scientific notation. If you don’t remember what that is, think of handheld calculators, which use it to show numbers that wouldn’t otherwise fit on their small displays. Okay, take your time to tackle this exercise before proceeding to the solution in the next lesson.
Become a Member to join the conversation.