搜索资源列表
intToFloat
- 将int类型数据转化为float型。对于没有浮点运算器的平台非常适合。-will int data type conversion to float type. For no floating point unit is suitable for the platform.
8queen_sc
- #if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CGAQueen
hacK
- * first open client.cpp and search for that USER_MSG_INTERCEPT(TeamInfo) over it u add this Code: USER_MSG_INTERCEPT(Health) { BEGIN_READ(pbuf,iSize) me.iHealth = READ_BYTE() return USER_MSG_CALL(Health) } *
遗传算法SGA
- 包含一个cpp文件,含有main()函数! 主要函数如下 void InitData(); int Flip(float probabiliby); float Random(); //generate a pseudorandom integer from 0 to 1 void ResetRandom(); //reset pseudorandom integer array fRand float ObjFunc(float vx); float DeC
float_char_int_string.rar
- 各种基本数据类型转换源程序。 本程序涉及到的数据类型有:float, int , char, string.,A variety of basic data type conversion source. This procedure involves the data types are: float, int, char, string.
baoliuxiaoshu
- 编写函数double fun(double x, int m),它的功能是将浮点数X保留M个小数,第M+1位四舍五入,如输入123.456,保留两位小数输出123.46-The preparation of function double fun (double x, int m), its function is to float X retained a small number of M, the first M+1 bit rounded, such as the importation
GeneratePossionDistribution_codes
- Generate Possion Dis. step1:Generate a random number between [0,1] step2:Let u=F(x)=1-[(1/e)x] step3:Slove x=1/F(u) step4:Repeat Step1~Step3 by using different u,you can get x1,x2,x3,...,xn step5:If the first packet was generated at time [
CseApi20
- CseApi20.zip是CSE脚本语言的底层封装库,用C++封装常用对象,包括Int、WideInt、float、Object对象、char数组(即string)、Int数组、object数组、字典dict等,由于封装是轻量级的,常用作基础类型库来支持Win32软件开发,如果使用STL容器等觉得不便时,这个库是很好的替代方案。-CseApi20.zip is the underlying scr ipting language package CSE database, using C++ p
Java_utilities
- 3 Useful utilities for any Java Programmer: 1. Random Number Generator Method - can generate random numbers in any interval even negative numbers. Changing (int) to (float) will give you float randoms. 2. isNarcissistic - Checks if a number is na
bignumber
- Java中的简单浮点数类型float和double不能够进行精确的运算,只能用来做科学计算或者是工程计算。 不光是Java,在其它很多编程语言中也有这样的问题。在大多数情况下,计算的结果是准确的, 但是多试几次(可以做一个循环)就可以试出类似上面的错误。 这个问题相当严重,如果你有9.999999999999元,你的计算机是不会认为你可以购买10元的商品的。 为了解决Java基本数据类型在运算时会出现的溢出和计算不精确的问题。 Java 提供了两个类BigInteger和Bi
Lab6
- Java example The Primitive Types 2. 1. 2. Size for Java s Primitive Types 2. 1. 3. Default values for primitives and references 2. 1. 4. Literals 2. 1. 5. Surprise! Java lets you overflow 2. 1. 6. Wrapping a Primit
4-4
- 设计一个银行账户(Account)类,包含户名、帐号以及当前余额属性,可完成开户、存款、取款和查询余额等行为。银行账户类的定义如下: class Account { private: char mName[20] //银行账户的户名 long mSN //本账户的帐号 float mBalance //本账户当前的余额 public: Account(char name[],long num,float amount) //类的构造函数 ~A
tofloat
- Converting int to float
Test
- 测试代码,主要看int类型转换float后是怎么转换的。-Test code, mainly to see the int type float after conversion is how to convert.
script_interpreter
- 一个用c语言写的解释器,有三种数据类型:int、float、string。支持+ -×/和print功能。虽然很小,但有很强的参考意义,容易扩展-A simple interpreter, there are three data types: int, float, string. Support+- ×/and print functions. Although small, but has a strong reference value, easy to extend
tofloat
- Converting int to float
tofloat
- Converting int to float
Test_int_to_float
- Test int to float Source Code for Andriod.
Test_int_to_float
- Test int to float extends DxTestCase for Linux.
float_2_int.v
- 最全的,最简单,32位浮点数转整数,32位整数转浮点数,直接可以移植,已经测试过好用。(The most complete, the simplest, 32 bit floating-point integer, 32 integer floating point number, can be directly transplanted, has been tested, easy to use.)