Floating-Point Data Types

This chapter provides tutorial examples and notes on floating-point data types. Topics include precisions and performances of 'float', 'double' and 'decimal' values; IEEE 754 standards on binary representation of 'float' and 'double'; Microsoft binary presentation of 'decimal'.

Precision of Floating-Point Data Types

Precision of Floating-Point Data Types - Test

Performance of Floating-Point Data Types

Performance of Floating-Point Data Types - Test

IEEE 754 Standards - "float" and "double"

IEEE 754 Standards - "float" and "double" - Test

Binary Representation of "decimal"

Accuracy of "decimal" Data Type

Conclusions:

Table of Contents

 About This Book

 Introduction of C# (C Sharp)

 Data Type and Variables

 Logical Expressions and Conditional Statements

 Arrays and Loop Statements

 Data Type Features

Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

 C# Compiler and Intermediate Language

 Compiling C# Source Code Files

 MSBuild - Microsoft Build Engine

 Memory Usages of Processes

 Multithreading in C#

 Async Feature from C# 5

 System.IO.FileInfo Class

 System.Diagnostics.FileVersionInfo Class

 WPF - Windows Presentation Foundation

 Partial Classes and Partial Methods

 Outdated Tutorials

 References

 PDF Printing Version