Introduction
Most programs need to work with data—numbers to calculate, text to display, and values that change based on user input. In C#, working with data means understanding data types, performing calculations, and knowing how to convert between different types when needed.
In this module, you learn about C#'s numeric data types, how to perform math operations, and how to convert values between types. You put these skills together in an exercise that calculates a restaurant tip.
Learning objectives
In this module, you will:
- Recognize C#'s common numeric data types
- Perform basic math operations with numbers
- Convert values between different data types
Note
We recognize that different people like to learn in different ways. You can choose to complete this module in video-based format or you can read the content as text and images. The text contains greater detail than the videos, so in some cases you might want to refer to it as supplemental material to the video presentation.