Welcome![Sign In][Sign Up]
Location:
Search - float to double

Search list

[Static controlnamab

Description: ergydfhgdfhggfhg 一.实验目的 二.实验内容 三、程序简要说明 原 文 : C语言词法分析器的设计与实现 一.实验目的: 1.强化对系统软件综合工程实现能力、规划能力的训练; 2.加强对词法分析原理、方法和基本实现技术的理解; 二.实验内容: 用C语言(或 C++ )作为宿主语言完成: C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。 三、程序简要说明: 1、属性字说明: 共9种 KEYWORD: 关键字 \"auto\",\"break\",\"case\",\"char\",\"const\",\"continue\", \"default\",\"do\",\"double\",\"else\",\"enum\",\"extern\", \"float\",\"for\",\"goto\",\"if\",\"int\",\"long\",\"register\", \"return\",\"short\",\"signed\",\"sizeof\",\"static\",\"struct\", \"switch\",\"typedef\",\"union\",\"unsigned\",\"void\", \"volatile\",\"while\",\"include\",\"define\" 共34个 详见IsKeyWord()函数 NUMBER: 数字 包括十进制整数,八进制整数,二进制整数,十六进制整数 还可返回几种错误 详见IsNumber()函数 CONSTANT: 常量 宏定义标识符,不识别C++关键字const,简单处理一层宏定义。 详见IsDefined()函数 ...... 关键词 : 计算机 编译原理 c语言 词法分析器-ergydfhg gfhg one. Experiment 2. Experiment 3, procedures brief description of the original : C language lexical analyzer Design and Implementation of a. The experiment : 1. To strengthen the integrated system software engineering, planning capacity of training; 2. Lexical analysis on principle, and basic understanding of the technology; 2. Experiment : C (or C) as the host language completed : C language (ANSI C or Turbo C 2.0) lexical analyzer design and implementation. 3, brief description of procedures : 1, the word attribute : a total of nine species KEYWORD : keyword "auto" "break" and "case", "char", "const", "continue", "default", "do", "double", "else", "enum" "ext
Platform: | Size: 1214 | Author: 天空 | Hits:

[ComboBoxfchh

Description: 一.实验目的 二.实验内容 三、程序简要说明 原 文 : C语言词法分析器的设计与实现 一.实验目的: 1.强化对系统软件综合工程实现能力、规划能力的训练; 2.加强对词法分析原理、方法和基本实现技术的理解; 二.实验内容: 用C语言(或 C++ )作为宿主语言完成: C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。 三、程序简要说明: 1、属性字说明: 共9种 KEYWORD: 关键字 \"auto\",\"break\",\"case\",\"char\",\"const\",\"continue\", \"default\",\"do\",\"double\",\"else\",\"enum\",\"extern\", \"float\",\"for\",\"goto\",\"if\",\"int\",\"long\",\"register\", \"return\",\"short\",\"signed\",\"sizeof\",\"static\",\"struct\", \"switch\",\"typedef\",\"union\",\"unsigned\",\"void\", \"volatile\",\"while\",\"include\",\"define\" 共34个 详见IsKeyWord()函数 NUMBER: 数字 包括十进制整数,八进制整数,二进制整数,十六进制整数 还可返回几种错误 详见IsNumber()函数 CONSTANT: 常量 宏定义标识符,不识别C++关键字const,简单处理一层宏定义。 详见IsDefined()函数 ...... 关键词 : 计算机 编译原理 c语言 词法分析器-one. Experiment 2. Experiment 3, procedures brief description of the original : C language lexical analyzer Design and Implementation of a. The experiment : 1. To strengthen the integrated system software engineering, planning capacity of training; 2. Lexical analysis on principle, and basic understanding of the technology; 2. Experiment : C (or C) as the host language completed : C language (ANSI C or Turbo C 2.0) lexical analyzer design and implementation. 3, brief description of procedures : 1, the word attribute : a total of nine species KEYWORD : keyword "auto" "break" and "case", "char", "const", "continue", "default", "do", "double", "else", "enum" "extern", "
Platform: | Size: 1214 | Author: 天空 | Hits:

[Software EngineeringIntel_IA32_C_CPU

Description: 剖析Intel IA32 架构下C 语言及CPU 浮点数机制 Version 0.01 哈尔滨工业大学 谢煜波 (email: xieyubo@126.com 网址:http://purec.binghua.com) (QQ:13916830 哈工大紫丁香BBSID:iamxiaohan) 前言 这两天翻看一本C 语言书的时候,发现上面有一段这样写到 例:将同一实型数分别赋值给单精度实型和双精度实型,然后打印输出。 #include <stdio.h> main() { float a double b a = 123456.789e4 b = 123456.789e4 printf(“%f\\n%f\\n”,a,b) } 运行结果如下:-analysis framework and the C language CPU float mechanism Version 0.0 a Harbin Industrial University Shushan wave (email : xieyubo@126.com website : http://purec.binghua.com) (QQ : HIT lilac BBSID 13916830 : iamxiaohan) Introduction The two epoch-making book on the C language, discovered that there are some cases written : the same number of each type is assigned to the single-precision and double-real float, then print output. # Include
Platform: | Size: 168329 | Author: lza | Hits:

[Other resourcecyuanchengxu

Description: 函数模板T max(T a, T b, T c),使之实现对任何类型数,能从三个数中求出最大数返回。设计各种类型数据(char,short,long,float,double)调用此函数模板。-function template T max (T a, b T, T c), to enable it to achieve any of several types, a few were from the three sought to return to the greatest number. Design data types (char, short, long, float, double) calling this function template.
Platform: | Size: 3044 | Author: gongwen | Hits:

[Static controlnamab

Description: ergydfhgdfhggfhg 一.实验目的 二.实验内容 三、程序简要说明 原 文 : C语言词法分析器的设计与实现 一.实验目的: 1.强化对系统软件综合工程实现能力、规划能力的训练; 2.加强对词法分析原理、方法和基本实现技术的理解; 二.实验内容: 用C语言(或 C++ )作为宿主语言完成: C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。 三、程序简要说明: 1、属性字说明: 共9种 KEYWORD: 关键字 "auto","break","case","char","const","continue", "default","do","double","else","enum","extern", "float","for","goto","if","int","long","register", "return","short","signed","sizeof","static","struct", "switch","typedef","union","unsigned","void", "volatile","while","include","define" 共34个 详见IsKeyWord()函数 NUMBER: 数字 包括十进制整数,八进制整数,二进制整数,十六进制整数 还可返回几种错误 详见IsNumber()函数 CONSTANT: 常量 宏定义标识符,不识别C++关键字const,简单处理一层宏定义。 详见IsDefined()函数 ...... 关键词 : 计算机 编译原理 c语言 词法分析器-ergydfhg gfhg one. Experiment 2. Experiment 3, procedures brief description of the original : C language lexical analyzer Design and Implementation of a. The experiment : 1. To strengthen the integrated system software engineering, planning capacity of training; 2. Lexical analysis on principle, and basic understanding of the technology; 2. Experiment : C (or C) as the host language completed : C language (ANSI C or Turbo C 2.0) lexical analyzer design and implementation. 3, brief description of procedures : 1, the word attribute : a total of nine species KEYWORD : keyword "auto" "break" and "case", "char", "const", "continue", "default", "do", "double", "else", "enum" "ext
Platform: | Size: 1024 | Author: 天空 | Hits:

[Software EngineeringIntel_IA32_C_CPU

Description: 剖析Intel IA32 架构下C 语言及CPU 浮点数机制 Version 0.01 哈尔滨工业大学 谢煜波 (email: xieyubo@126.com 网址:http://purec.binghua.com) (QQ:13916830 哈工大紫丁香BBSID:iamxiaohan) 前言 这两天翻看一本C 语言书的时候,发现上面有一段这样写到 例:将同一实型数分别赋值给单精度实型和双精度实型,然后打印输出。 #include <stdio.h> main() { float a double b a = 123456.789e4 b = 123456.789e4 printf(“%f\n%f\n”,a,b) } 运行结果如下:-analysis framework and the C language CPU float mechanism Version 0.0 a Harbin Industrial University Shushan wave (email : xieyubo@126.com website : http://purec.binghua.com) (QQ : HIT lilac BBSID 13916830 : iamxiaohan) Introduction The two epoch-making book on the C language, discovered that there are some cases written : the same number of each type is assigned to the single-precision and double-real float, then print output.# Include
Platform: | Size: 167936 | Author: lza | Hits:

[Algorithmcyuanchengxu

Description: 函数模板T max(T a, T b, T c),使之实现对任何类型数,能从三个数中求出最大数返回。设计各种类型数据(char,short,long,float,double)调用此函数模板。-function template T max (T a, b T, T c), to enable it to achieve any of several types, a few were from the three sought to return to the greatest number. Design data types (char, short, long, float, double) calling this function template.
Platform: | Size: 3072 | Author: gongwen | Hits:

[Otherbytechange

Description: 实现字节翻转的两种方法,各有所长。一个函数,只能翻转int型,但效率高。另一个函数模板,能实现 int、float、double等基本数据类型的字节翻转,但效率略低。-Byte flip realize the two methods have their own strong points. A function can only be turned int type, but high efficiency. Another function template can realize int, float, double, such as basic data types of byte flip, but slightly lower efficiency.
Platform: | Size: 2048 | Author: yan | Hits:

[assembly languagemain4

Description: 凌阳单片机实验, 四种数据类型DW、DD、FLOAT和DOUBLE的用法和区别.-Sunplus Single-chip experiments, four data types DW, DD, FLOAT and DOUBLE the usage and differential.
Platform: | Size: 1024 | Author: aining10 | Hits:

[BooksJAVAjichu

Description: 1. 下列说法正确的是 ( ) A. Java语言不区分大小写 B. Java程序以类为基本单位 C. JVM为Java虚拟机JVM的英文缩写 D. 运行Java程序需要先安装JDK 2. 下列说法中错误的是 ( ) A. Java语言是编译执行的 B. Java中使用了多进程技术 C. Java的单行注视以//开头 D. Java语言具有很高的安全性 3. 下面不属于Java语言特点的一项是( ) A. 安全性 B. 分布式 C. 移植性 D. 编译执行 4. 下列语句中,正确的项是 ( ) A . int $e,a,b=10 B. char c,d=’a’ C. float e=0.0d D. double c=0.0f -1. The following statement is correct () A. Java language is not case-sensitive B. Java procedures to category C. JVM as the basic unit for the Java virtual machine JVM abbreviation D. run Java procedures need to install JDK 2. The following argument is in error () A. Java language compiler B. Java implementation of a number of processes used in C. Java technology to monitor the one-way// D. Java language at the beginning of a high security 3. The following does not belong to Java language the characteristics of a () A. security B. distributed C. transplanted D. compiler implementation 4. The following statement, the correct is () A. int $ e, a, b = 10 B. char c , d = a C. float e = 0.0d D. double c = 0.0f
Platform: | Size: 1336320 | Author: jtl0 | Hits:

[Database systemb_tree16

Description: 综合2叉树及B+树优点的能根据增删改而分裂或合并的完整程序(现在以8bit(BYTE key)为关键字,可扩充到64bit的double为key,用户数据包现在以float ton表示,可扩充到任意结构struct)-Integrated 2-tree and B tree based on the merits of additions and deletions instead of splitting or merging of the integrity of the procedure (now to 8bit (BYTE key) for the keywords, can be expanded to 64bit the double for key, user data packets that now float ton , scalable to any structure struct)
Platform: | Size: 3072 | Author: mawenxiao | Hits:

[Otherfloatfun

Description: 编函数 float fun(double h),函数的功能是:对变量h中的值保留两位小数,并对第三位进行四舍五入(规定h中的值为正数)。 例如:若h 值为8.32433,则函数返回8.32 若h值为8.32533,则函数返回8.33。 -Function for float fun (double h), the function of function: The value of the variable h in the retention of two decimals, and rounding to the third (of the value of h provides a positive number). For example: If the h value of 8.32433, the function returns 8.32 if the h value of 8.32533, the function returns 8.33.
Platform: | Size: 2048 | Author: 程冬水 | Hits:

[Algorithmftoa.c

Description: This a fast floating point to string conversion function. Avoids the use of unsafe sprintf function. Works with float and double types. Correctly manages +inf, -inf, nnan (not a number).-This is a fast floating point to string conversion function. Avoids the use of unsafe sprintf function. Works with float and double types. Correctly manages+inf,-inf, nnan (not a number).
Platform: | Size: 1024 | Author: steux | Hits:

[JSP/Javareal-java-1.13

Description: Real - Java floating point library for MIDP devices-Current version: 1.13 Copyright: 2003-2009 Roar Lauritzsen, roarl at users.sourceforge.net Availability: The library is available under the GPL license, or for a fee for commercial use. Develop: See http://sourceforge.net/projects/real-java Feedback: Comments, reports of use, bug reports, bug fixes, improvements, performance tests and comparisons to similar libraries are all welcome. Javadoc: Read the full documentation here. "Real.java" is a self-contained, single file Java floating point emulation library for MIDP devices, such as a Java-enabled cell-phone or PDA. The MIDP/CLDC 1.0 standard does not support the basic floating point types "float" or "double", so when I set out to program a scientific calculator for my cell-phone, I had to reinvent floating point arithmetic from scratch, using only integer basic types. I found it a very interesting and educating challenge. Download For a pure java version, use the following link: http://real-java.sourceforge.net/Real.java. T
Platform: | Size: 116736 | Author: mm | Hits:

[Windows Developllh2xyz

Description: 一个用单精度浮点数库计算的经纬度转换XYZ坐标转换源程序,精度达到双精度浮点数的精度,在VC或borlandc下均可运行的程序.-float to generate double accuracy. transfer (Latitude,Longitude,Height) to (X,Y,Z)
Platform: | Size: 190464 | Author: 南帝 | Hits:

[JSP/Javabignumber

Description: Java中的简单浮点数类型float和double不能够进行精确的运算,只能用来做科学计算或者是工程计算。 不光是Java,在其它很多编程语言中也有这样的问题。在大多数情况下,计算的结果是准确的, 但是多试几次(可以做一个循环)就可以试出类似上面的错误。 这个问题相当严重,如果你有9.999999999999元,你的计算机是不会认为你可以购买10元的商品的。 为了解决Java基本数据类型在运算时会出现的溢出和计算不精确的问题。 Java 提供了两个类BigInteger和BigDecimal,专门用于进行高精度运算 凡是能用int 或float 做的事情,用BigInteger和BigDecimal也可以做, 只是必须换用方法调用,而不是使用运算符。 高精度整数BigInteger BigInteger支持任意精度的整数,也就是说我们可精确表示任意大小的整数值;同时在运算过程中不会丢失任何信息; 高精度浮点数BigDecimal 它可以表示任意精度的小数,并对它们进行计算。 由于 BigDecimal 对象是不可变的,这些方法中的每一个都会产生新的 BigDecimal 对象。 因此,因为创建对象的开销,BigDecimal 不适合于大量的数学计算,但设计它的目的是用来精确地表示小数-Java, a simple floating-point types float and double can not be accurate calculation can only be used in scientific computing or engineering calculation. Not only is Java, in many other programming languages also have this problem. In most cases, the calculated results are accurate, But try more than once (you can do a loop) can try a similar error above. This problem is very serious, if you have 9.999999999999 yuan, your computer will not think you can buy 10 dollars goods. In order to solve the basic data types in Java computing overflow occurs and the problem of inaccurate calculation. Java provides two classes BigInteger and BigDecimal, specifically for high-precision operations Int or float can be used to do all things, with the BigInteger and BigDecimal can do, Just have to change with the method call, rather than operator. High-precision integer BigInteger BigInteger supports arbitrary-precision integers, which means we can accurately represent the entire val
Platform: | Size: 2048 | Author: w_y_loong | Hits:

[JSP/Javawangjiansenjiaocai

Description: Java平台的划分 要彻底了解Java 2 Micro Edition,我们必须先对Java 2 Micro Edition在整个Java技术之中的定位做个了解。 一般我们在撰写C程序的时候,会使用C标准程序库;使用C++撰写程序的时候,会使用C++标准程序库;而使用Java撰写程序的时候,则使用Sun所提供的Java标准类库。之所以叫做类库,是因为各式各样的方法(method,也可以叫做“函数”)被有系统地放在类之中,而这些类又被分门别类地归属在不同的包(package)之下,相较起来,传统标准程序库(例如Win32 API)的组成结构就显得有点松散。 这些各式各样的包(package),组成了所谓的核心类库(Core Class,即java.*),在核心类库之外还有所谓的扩充类库(Extended Class,即javax.*)。程序员可以自由选用各种程序库来完成自己的工作。 Java语言还支持8种基本类型(primitive type,即boolean、byte、short、int、long、float、double),可供程序员撰写程序时使用。根据所支持的基本类型,以及对这些核心和扩充类库所支持的程度,Sun Microsystems区分出四种不同的Java平台,如图1-1所示。-By Java Platform To thoroughly understand the Java 2 Micro Edition, we must first of the Java 2 Micro Edition Java technology into the entire understanding of the positioning to be. In general we write a C program, will use the C standard library using C++ written program, will use the C++ Standard Library and use Java to write programs when you use the Sun provided by the Java standard library. The reason is called the library, because a variety of methods (method, also called a "function") have been systematically put into classes, which classes they are categorized in a different package ownership (package) s under comparison, the traditional standard library (such as Win32 API) of the structure becomes a bit loose. These kinds of packages (package), form the so-called core class libraries (Core Class, the java .*), there are the so-called outside of the core library extension library (Extended Class, or javax .*) . Programmers are free to choose a variety of library to comp
Platform: | Size: 7766016 | Author: zhaolulu | Hits:

[Linux-Unixcephes-math-28.tar

Description: Cephes Mathematical Library. Latest Linux distribution, dated 6/4/00. Special functions and other goodies in C, including long double precision routines for 68K, 386, and sparc processors. This is the most complete distribution package of the function library (but not the most up-to-date one). It includes these sections-- double: all functions in 64-bit double precision single: all available functions in 32-bit single precision long double: all available functions in 80-bit extended precision 128bit: all available functions in 128-bit long double precision qlib: all functions in q-type extended (44 to 106 decimal) precision, includes a C++ class for the binary floating point arithmetic and a q-type calculator program c9x-complex: new C language standard C9X data type for complex variables, header complex.h for GNU C and functions in float complex, double complex, and long double complex precisions. -Cephes Mathematical Library. Latest Linux distribution, dated 6/4/00. Special functions and other goodies in C, including long double precision routines for 68K, 386, and sparc processors. This is the most complete distribution package of the function library (but not the most up-to-date one). It includes these sections-- double: all functions in 64-bit double precision single: all available functions in 32-bit single precision long double: all available functions in 80-bit extended precision 128bit: all available functions in 128-bit long double precision qlib: all functions in q-type extended (44 to 106 decimal) precision, includes a C++ class for the binary floating point arithmetic and a q-type calculator program c9x-complex: new C language standard C9X data type for complex variables, header complex.h for GNU C and functions in float complex, double complex, and long double complex precisions.
Platform: | Size: 1754112 | Author: liyi | Hits:

[Data structsc

Description: (1)float型和double型变量所能表示的最小正数分别是多少? (2)分析代码在时间足够的情况下是否能运行完,如果能给出n_f及n_d值。 (3)分别用float型和double型变量保存部分和Sk,递推计算(1)(见于实验七作业文件)式的值,并判定结果是否收敛?原因?理论分析及编程测试,给出收敛时得n值。 (4)设计求和算法,使用float型变量,使得收敛时n尽量大,部分和Sk尽量准确。 -(1) float and double variable can be represented by the smallest positive number is how much? (2) analysis of the code in enough time if run to completion, if you can give n_f, and n_d value. (3), respectively, with a variable of type float and double type to save part and Sk recursive calculation (1) (seen in the experimental value-seven job file), and to determine whether the result of convergence? Reasons? Theoretical analysis and programming test, given the convergence, when the value of n. (4) design summation algorithm, using a float variable, makes convergence n as large as possible, part as accurately as possible and Sk
Platform: | Size: 1024 | Author: liqian | Hits:

[Linux-UnixTest_float_to_double

Description: Test float to double extends DxTestCase for Linux v2.13.6.
Platform: | Size: 1024 | Author: nengvenkong | Hits:
« 12 »

CodeBus www.codebus.net