The C# standard only lists double and float as floating points available (those being the C# shorthand for System.Double and System.Single),

but the decimal type (shorthand for System.Decimal) is also a floating point type really - it's just it'sdecimal floating point, and the ranges of exponents are interesting.

The decimal type is described in another article, so this one doesn't go into it any further - we're concentrating on double and float.

Both of these are binary floating point types, conforming to IEEE 754 (a standard defining various floating point types).

float is a 32 bit type (1 bit of sign, 23 bits of mantissa, and 8 bits of exponent),

and double is a 64 bit type (1 bit of sign, 52 bits of mantissa and 11 bits of exponent).

http://kipirvine.com/asm/workbook/floating_tut.htm

What floating point types are available in .NET?的更多相关文章

  1. Fundamental types

    Fundamental types void type boolean type character types integer types Modifiers signedness size Pro ...

  2. Primitive Data Types

    Primitive Data Types (The Java™ Tutorials > Learning the Java Language > Language Basics) http ...

  3. Floating Point Math

    Floating Point Math Your language isn't broken, it's doing floating point math. Computers can only n ...

  4. Vector Tile

    Mapbox Vector Tile Specification A specification for encoding tiled vector data. <?XML:NAMESPACE ...

  5. JPA 教程

    Entities An entity is a lightweight persistence domain object. Typically an entity represents a tabl ...

  6. hive函数参考手册

    hive函数参考手册 原文见:https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF 1.内置运算符1.1关系运算符 运 ...

  7. hive函数总结

    转自:http://www.cnblogs.com/end/archive/2012/06/18/2553682.html 1.内置运算符1.1关系运算符 运算符 类型 说明 A = B 所有原始类型 ...

  8. Why NHibernate updates DB on commit of read-only transaction

    http://www.zvolkov.com/clog/2009/07/09/why-nhibernate-updates-db-on-commit-of-read-only-transaction/ ...

  9. c89、c99、c11区别

    c89 c99 注: GCC支持C99, 通过 --std=c99 命令行参数开启,如: 代码:gcc --std=c99 test.c ------------------------------- ...

随机推荐

  1. HDU 1532 Drainage Ditches 分类: Brush Mode 2014-07-31 10:38 82人阅读 评论(0) 收藏

    Drainage Ditches Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) ...

  2. Windows键盘快捷键

  3. Javascript全局变量的使用方法

    1.demo例子说明 <script type="text/javascript"> var gDivId; //js全局变量 function geocoder(la ...

  4. Sqli-labs less 53

    Less-53 和less51是一样的,只是这里的mysql错误不会在前台显示,但是对于stacked injection是一样的利用方式 http://127.0.0.1/sqli-labs/Les ...

  5. 使用tomcat7创建异步servlet

    该篇文章翻译自:http://developerlife.com/tutorials/?p=1437 一.简介 Servlet API 3.0 之前,需要使用类似Comet的方式来实现创建异步的Ser ...

  6. iOS后台运行

    http://www.cocoachina.com/bbs/read.php?tid=149564 文一 我从苹果文档中得知,一般的应用在进入后台的时候可以获取一定时间来运行相关任务,也就是说可以在后 ...

  7. POJ 2021

    #include <iostream> #include <string> #include <algorithm> #define MAXN 105 using ...

  8. C# 和Jsonp的一个小demo 用jQuery与JSONP轻松解决跨域访问的问题

    客服端:      在A项目下面 建立一个 JsonpClient.aspx页面,代码如下: <%@ Page Language="C#" AutoEventWireup=& ...

  9. Visual Studio 自定义控件不显示在工具箱

    工具=>选项=>Windows窗体设计器=>常规=>AutoToolBoxPopulate=>True

  10. JAVA IO 体系

    一.体系结构