Chapter 1. Numbers and Enumerations


    Introduction

    Recipe 1.1.  Determining Approximate Equality Between a Fraction and Floating-Point Value

    Recipe 1.2.  Converting Degrees to Radians

    Recipe 1.3.  Converting Radians to Degrees

    Recipe 1.4.  Using the Bitwise Complement Operator with Various Data Types

    Recipe 1.5.  Testing for an Even or Odd Value

    Recipe 1.6.  Obtaining the High Word or Low Word of a Number

    Recipe 1.7.  Converting a Number in Another Base to Base10

    Recipe 1.8.  Determining Whether a String Is a Valid Number

    Recipe 1.9.  Rounding a Floating-Point Value

    Recipe 1.10.  Choosing a Rounding Algorithm

    Recipe 1.11.  Converting Celsius to Fahrenheit

    Recipe 1.12.  Converting Fahrenheit to Celsius

    Recipe 1.13.  Safely Performing a Narrowing Numeric Cast

    Recipe 1.14.  Finding the Length of Any Three Sides of a Right Triangle

    Recipe 1.15.  Finding the Angles of a Right Triangle

    Recipe 1.16.  Displaying an Enumeration Value as a String

    Recipe 1.17.  Converting Plain Text to an Equivalent Enumeration Value

    Recipe 1.18.  Testing for a Valid Enumeration Value

    Recipe 1.19.  Testing for a Valid Enumeration of Flags

    Recipe 1.20.  Using Enumerated Members in a Bit Mask

    Recipe 1.21.  Determining if One or More Enumeration Flags Are Set

    Recipe 1.22.  Determining the Integral Part of a Decimal or Double



C# Cookbook
Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More
ISBN: 0596003943
EAN: 2147483647
Year: 2004
Pages: 424

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net