“Floats are numbers that include decimals. Integers are whole numbers with no decimals, and strings are text.”
An example from the book:
“It’s a float data type, which is a number with a decimal place.”
Therefore, -2.34 represents a float.
Verified Reference:
Chapter 6: Software Development Concepts — “Data Types and Structures” (pp. 372–373).
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit