Advertisement
Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

C# 2008 Floating Point Variable Types

Part of the C# 2008 For Dummies Cheat Sheet

C# distinguishes real numbers, which come in two styles: floating point and decimal. Floating point is the most common and floating-point variables are assigned. This chart describes the two floating-point variables in C#:

Type Size (bytes) Range Accuracy In Use
float 8 1.5 * 10-45 to 3.4 * 1038 6-7 digits float f = 1.2F;
double 16 5.0 * 10-324 to 1.7*10308 15-16 digits double d = 1.2;
  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Advertisement
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win an iPad Mini. Enter to win now!