O'Reilly logo

Introducing Visual C# 2010 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Numeric and Boolean Types

Numeric types, as the name suggests, represent numbers. These types, and the operations that can be used on them, are the basis for C# mathematics support. The Boolean type allows you to express true and false values—a feature that you can use directly with the bool type or indirectly when conditions are evaluated in conditional statements.

In this chapter, you'll see the different types that are available to represent different kinds of numbers and how to define numeric values using numeric literals and the range of numeric operators that C# supports. I'll also show you how to use Boolean literals and how Booleans are used when operations are performed and conditions evaluated. Table 5-1 provides the summary ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required