如果我们回想一下我们一开始讲过的数据对象的种类,浮点数,整数,字符串,它们实际上有相同的行为方式。
If we go back up to the kinds of data objects we started with, floats, ints, strings, they actually behave the same way.
您可以看到,这些文档可以存储包括字符串、整数、浮点数、日期、对象、数组等的各种数据类型。
As you can see, these documents can store various data types include strings, integers, floats, dates, objects, arrays and more.
我要为大家指出这一点的原因是,如果我们想一下以前讲过的,数据类型的种类,浮点数,整数,字符串,它们实际上有相同的行为方式。
The reason I want to point this out to you is, if we go back up to the kinds of data objects we started with, floats, ints, strings, they actually behave the same way.
如果需要其他的数据类型,比如说整数、浮点数或者布尔值,必须使用相应的包装器类来解析字符串。
If you need another data type such as integer, floating point, or Boolean value, you will have to parse the string using the appropriate wrapper class.
但是,如果对浮点数使用取模和求余数操作符,则会产生错误,因为这些操作符只支持整数。
However, an error will be raised when using an equivalent of the modulus and remainder operators on floating values, as these support only integer values.
所以自变量(数据)-无论是浮点数、整数、字符串还是复杂对象-都要编码成可以传输到RPC接收方的格式。
So the arguments (the data) — whether they are floating-point Numbers, integers, character strings, or complex objects — are encoded into a format that can be transferred to the RPC receiver.
浮点数和小数不象整数一样“循规蹈矩”,不能假定浮点计算一定产生整型或精确的结果,虽然它们的确“应该”那样做。
Floating point and decimal Numbers are not nearly as well-behaved as integers, and you cannot assume that floating point calculations that "should" have integer or exact results actually do.
简单类型包括字符串、浮点数、整数、枚举等。
Simple types include string, float, integer, enumeration, etc.
在整数和浮点数上,都支持使用标准的数学操作符(+、-、/ 和 *),可以在算式中混合使用浮点数和整数。
The standard mathematical operators, +, -, /, * are supported on both integer and floating point values, and you can mix and match floating-point and integers in calculations.
具体地说,复数无法与其他数字进行比较了,包括其他复数以及整数、浮点数和长整数。
Specifically, complex Numbers became incomparable to other Numbers, including both other complex Numbers and ints, floats, and longs.
或许这有某种意义,但奇怪的是,这两个集的合集包含浮点数4.0,而其交集包含整数4。
Perhaps there is some sense to this, but it strikes me as peculiar that the union of the two sets contains the float 4.0, while their intersection contains the int 4.
EXI引入了数据类型,比如二进制、布尔值、小数、浮点数、整数、无符号整数,以及日期-时间。
EXI introduces data types such as Binary, Boolean, Decimal, Float, Integer, Unsigned Integer, and Date-Time.
对于浮点数,您将在整数部分和小数部分之间放置小数点。
For floating-point Numbers, you place a decimal as the separator between the whole part of the number and the fraction.
其中一个构造函数以双精度浮点数作为输入,另一个以整数和换算因子作为输入,还有一个以小数的String表示作为输入。
One takes a double-precision floating point as input, another takes an integer and a scale factor, and another takes a String representation of a decimal number.
像C语言一样,Go提供了一系列的基本类型,常见的布尔,整数和浮点数类型都具备。
Like C, Go offers a handful of primitive types. The usual Boolean, integer and floating-point types are available.
通常支持的类型有整数、Boolean、ASCII字符串、双精度带符号浮点数、日期时间、集合、列表、属性。
In general supported types are Integer, Boolean, ASCII string, double-precision signed floating point number, date-time, set, list, properties.
常数可以是整数、字符、浮点数、字符串、Boolean、octet或枚举型,但不能是any类型或用户定义的类型。
Your constants can be integer, character, floating-point, string, Boolean, octet or enumerated but not of type any or a user-defined type. Here are some examples.
主要是要明白Psyco对于处理多次循环的块是很有用的,而且它知道如何优化涉及整数和浮点数的操作。
The main thing to understand is that Psyco is useful for handling blocks that loop many times, and it knows how to optimize operations involving integers and floating point numbers.
所以正如能够匹配很多值一样,我们也能够匹配很多对象类型,如:整数、浮点数和字符串。
So as well as being able to pattern match over values, such as integers, floating point Numbers and strings, we are also able to pattern match over an objects type.
然后,调用友元函数spacefriend并将类对象的地址作为其参数传递。然后调用template函数,先使用整数类型,然后使用浮点数据类型。
It then calls the friend function spacefriend and passes the class object address as its argument, and calls the template function, beginning with integer types and then floating data types.
另外,不能在浮点数、整数和长整数(比如decimal)之间进行比较是非常不方便的。
Moreover, not being able to compare among floats, ints, and longs (or, for example, decimal) would be awkward.
不过这份数据中包含几个引人注目的增强:比较浮点数与整数的性能提高了75%,内建函数的访问性能提高了41%。
However, there are some notable improvements hidden within that overall drop. Float-Integer comparison improved 75%, and builtin function calls improved 41%.
SOAP定义简单的数据类型:字符串、整数、浮点数以及负整数(NegativeInteger)。
SOAP defines simple data types: String, Int, Float, and NegativeInteger.
它可以搜索和编辑任何游戏,如整数数据类型,浮点数,字符串,像在游戏打斗皇血不确定数据。
It can search and edit any type of game data such as integer, floating point number, string and uncertain data like blood in game King of Fights.
其基本类型为几种大小的字符、整数和浮点数类型。
The fundamental types are characters, and integers and floating point Numbers of several sizes.
是霓虹灯臂更快的整数比浮点数?
有没有更好的方法来强制一个整数,浮点数的红宝石之外。圆(1)?
Is there a better way to coerce an integer to a floating point in Ruby besides. Round (1)?
为解决状态观测器中采用传统浮点数运算时,因自动下溢出产生误差的问题,提出全整数运算算法提高控制精度。
To avoid the cumulative error problem caused by auto-overflow in state observer floating operation, the whole-integer operation was proposed to improve the control precision.
是一个十进制数,所有的结果都充分考虑整数乘法,浮点数学吗?
Is Multiplying a decimal number where all results are full integers, considered Floating Point Math?
是一个十进制数,所有的结果都充分考虑整数乘法,浮点数学吗?
Is Multiplying a decimal number where all results are full integers, considered Floating Point Math?
应用推荐