登录
首页 » C/C++ » 浮点数运算

浮点数运算

于 2021-03-29 发布
0 106
下载积分: 1 下载次数: 1

代码说明:

说明:  浮点数的表示与算术运算算法分析,要求理论推导与程序模拟。 算术运算包括字符串到浮点数、浮点数到字符串的转换,加、减、乘、除四则运算等。要有说明文档,包括算法证明、程序框图、使用方法、特殊处理(溢出、数位扩展)、实例分析等等。字符串转换可能稍难。 typedef unsigned int dwrd; #32-bit char* ftoa(dwrd); dwrd atof(char*); dwrd fadd(dwrd, dwrd); dwrd fsub(dwrd, dwrd); dwrd fmul(dwrd, dwrd); dwrd fdiv(dwrd, dwrd);(The representation of floating-point number and the analysis of arithmetic operation algorithm require theoretical derivation and program simulation. Arithmetic operations include string to floating point, floating point to string conversion, addition, subtraction, multiplication, division and so on. Documentation should be provided, including algorithm proof, program block diagram, usage, special handling (overflow, digital expansion), case analysis, etc. String conversion can be slightly difficult. typedef unsigned int dwrd; #32-bit char* ftoa(dwrd); dwrd atof(char*); dwrd fadd(dwrd, dwrd); dwrd fsub(dwrd, dwrd); dwrd fmul(dwrd, dwrd); dwrd fdiv(dwrd, dwrd);)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104228会员总数
  • 45今日下载