Description: 定点数只能表示一定范围内的数(整数或小数,有符号或者无符号),浮点数虽将表示数的范围给予了较充分的扩宽,但仍只能表示(理论上)无限精度的数;本导论将引入一种新类型的数——效数,来完美地表示数的范围和精度两个方面,并简要介绍(演示)效数的四则运算。-Fixed-point can only say that within a certain range of numbers (integer or decimal, signed or unsigned), floating point, said although the number will be given a more full range of widening, but still can only say that (theoretically) infinite precision Number this Introduction will introduce a new type of number- the number of effect, to perfectly express the number of range and accuracy of two aspects, and a brief description (demo) effective number of four operations. Platform: |
Size: 15360 |
Author:桂煌 |
Hits:
Description: 该大数运算类是一个支持超高精度和超大数的基本运算类,最高精度能够达到一百亿位有效数字,最大能够表示10的2147483648次方,支持基础的四则运算和比较运算。该类的特点是使用指数形式表示数据,应此空间占用少,运算速度比较快。该类库是基于MFC 的动态连接库,方便VS的开发环境。
该类库包含两个无符号整数类、两个有符号整数类和一个浮点数类,整数又分为带指数的和不带指数的两种,所以总共有不带指数的无符号整数类、带指数的无符号整数类、不带指数的有符号指数类、带指数的有符号指数类和浮点数类,不带指数的类用于循环计数等场合,这些场合通常不是10的整数倍,应此没有必要使用指数形式表示,带指数的类通常用于比较大的但是是10的整数倍,如光的速度等,使用带指数的类来计算即可节约存储空间,也可提高运算速度。 ,The large numbers arithmetic class is a basic computing class support ultra-high-precision and large number of the highest precision significant digits to reach ten billion, represents 10 2147483648 power, support basic four arithmetic and comparison operations. The characteristics of this class is to use the index indicates that the data in the form of less should be occupied by this space and faster computing speed. The class library is a dynamic link library, MFC-based VS-friendly development environment.
The class library contains two unsigned integer class, two signed integer class and a floating-point, integer is divided into the index and without index two, so the total without unsigned integer index class unsigned integer index class, without the index symbol index class, the index symbol index class, and floating point, the class without index for cycle counting and other occasions, these occasions are usually not an integer multiple of 10, expressed in index form index class Platform: |
Size: 12288 |
Author:梁建勋 |
Hits:
Description: 自行定义两个数据(字节或字均可,带符号数或无符号数均可),编程实现两个数的大小比较。若NUM1>NUM2,AL寄存器送字符﹥,并在屏幕上显示该字符;若NUM1<NUM2,AL寄存器送字符﹤,并在屏幕上显示该字符;若NUM1=NUM2,AL寄存器送字符﹦,并在屏幕上显示该字符。-Two self-defined data (byte or word can be, the number of signed or unsigned may be), Programming size comparison of two numbers. If NUM1> NUM2, AL register to send characters> and displays the character on the screen If NUM1 <NUM2,AL寄存器送字符﹤,并在屏幕上显示该字符;若NUM1=NUM2,AL寄存器送字符﹦,并在屏幕上显示该字符。 Platform: |
Size: 1024 |
Author:高军 |
Hits: