- 3
- 0
- 约6千字
- 约 34页
- 2017-05-30 发布于上海
- 举报
2 2 1章 基本使用方法
浮点数(IEEE 754标准) 科学计数法 表示计算机中的二进制浮点数 The Sign Bit:a sign bit of 0 represents a positive number and a sign bit of 1 represents a negative number. The Fraction Field:To simplify operations on these numbers, they are normalized in the IEEE format. A normalized binary number has a fraction of the form 1.f where f has a fixed size for a given data type. Since the leftmost fraction bit is always a 1, it is unnecessary to store this bit and is therefore implicit (or hidden). Thus, an n-bit fraction stores an n+1-bit number. The IEEE format also supports denormalized numbers, which have a fraction of the form 0.f. The Exponent Field: In the IEEE format, exponent representations are biased. This means a fixed value (the bias) is subtracted from the field to get the true exponent value. For example, if the exponent field is 8 bits, then the numbers 0 through 255 are represented, and there is a bias (bias = 2^(e-1) - 1) of 127. Single-Precision Format The IEEE single-precision floating-point format is a 32-bit word divided into a 1-bit sign indicator s, an 8-bit biased exponent e, and a 23-bit fraction f. A representation of this format is given below. Double-Precision Format The IEEE double-precision floating-point format is a 64-bit word divided into a 1-bit sign indicator s, an 11-bit biased exponent e, and a 52-bit fraction f. A representation of this format is shown in the following figure. Precision Because of a finite word size, a floating-point number is only an approximation of the true value. Therefore, it is important to have an understanding of the precision (or accuracy) of a floating-point result. In general, a value v with an accuracy q is specified by v?±?q. For IEEE floating-point numbers, M文件的简单创建及运行 尾数 fraction 基,必须为正 Base / radix 基的指数 数据的显示格式由format命令控制。 format只是影响结果的显示,不影响其计算与存储;MATLAB总是以双字长浮点数(双精度)来执行所有的运算。 如果结果为整数,则显示没有小数;如果结果不是整数,则输出形式有: format (short):短格式(5位定点数) 99.1253 format long:长格式(15位定点数
您可能关注的文档
- 11章 成本计算分批法.ppt
- 11章SQL Server程序设计.ppt
- 11章 通信原理.ppt
- 11章 网卡和调制解调器.ppt
- 11继电器与接触器控制(38 42).ppt
- 11章C程序设计 结构体(缩略).ppt
- 11讲 长期筹资之债权筹资.ppt
- 11谁的“三毛”案(贺洁 吴昊).ppt
- 11课复合建模(布尔 合并).ppt
- 12 22时事热点.ppt
- 伟明环保-市场前景及投资研究报告-境内业务稳健运行,印尼市场贡献边际增量.pdf
- 桂东县法院系统招聘考试真题2025.pdf
- 贵州省黔南布依族2026年中考三模物理试题及答案.pdf
- 贵州省黔南州2026年中考语文二模试卷附答案.pdf
- 贵州省铜仁市2026年中考语文二模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套完整答案详解.docx
- 贵州省毕节市2026年中考语文一模试卷附答案.pdf
- 贵州省贵阳市南明区2026年中考语文一模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套参考答案详解.docx
- 贵州省贵阳市白云区2026年中考二模物理试题附答案.pdf
最近下载
- 浙江省温州市2025-2026学年高三年级上学期期末质量评价语文试卷.docx VIP
- 门窗加工安全操作规程手册.docx VIP
- 人体表面放射性污染去污处理对策研究.docx VIP
- HAIER 海尔 海尔Haier冰箱 BCD-649WE 说明书.pdf
- 公共机构节水管理规范.doc VIP
- 如何找回误删微信好友,微信好友一键恢复.doc VIP
- 2012韩山师范学院专升本插班生考试《数据结构》试卷.pdf VIP
- Dragons: Riders of Berk《驯龙记:伯克岛的龙骑手(2012)》第一季第六集完整中英文对照剧本.docx VIP
- 供电设备、供水设备运行维护管理方案.pdf VIP
- 股票操作手册.pdf VIP
原创力文档

文档评论(0)