例如,c编程语言具有整型和浮点类型。
For example, the C programming language has integer and floating-point types.
从浮点类型到整型类型的转换。
为什么模量(%)操作字符而不是浮点类型?
Why does modulus (%) operator work for char but not for floating types?
如果要强制取得浮点结果,则必须确保操作数中至少有一个为浮点类型。
If you want to force a floating-point result, be sure that at least one of the operands is a floating-point type.
这些天,浮点数学一般是硬件的设计处理的完整宽度浮点类型。
These days, floating-point math is typically done in hardware that's designed to handle the full width of the floating-point types.
当然,浮点类型照顾这个细节你,尽管你不选择重正化发生时。
Floating point types of course take care of this detail for you, although you get less choice about when renormalisation takes place.
如果从未遇到过准确精度数据类型,那么对算术类型和浮点类型可能有些迷惑。
If you've never encountered an exact precision data type, the distinction between a decimal and floating-point type may be confusing.
这个响应会抛出一个异常,因为温度的值不是浮点类型—它实际上是一个字符串。
This response should throw an exception because the temperature value is not a float type — it is actually a string.
signed/unsigned关键字是声明非浮点类型必需的。
The signed/unsigned keyword is required for non-floating point declarations.
许多语言都拥有与IDL简单类型等同的内容,如整数类型和浮点类型。
Many languages have equivalents for the IDL simple types, such as integer and floating point types.
同样,解析器也能识别其他的基本类型,可以使用个小数点来创建浮点类型。
The parser also recognizes other basic types. Doubles can be created with a decimal point.
所以这两个故事都涉及到浮点类型,但是只有那样我们才能真正地分配到内存。
So both of these stories involve floating point values, but only in this case am I actually allocating memory.
即使对于版本7.2,如果其中一个运算对象被明确声明为浮点类型,那么Vim只支持浮点算术。
Even under version 7.2, Vim does only floating-point arithmetic if one of the operands is explicitly floating-point.
在 64位系统上,整型被转换成 64 位的整型值,单精度的浮点类型被转换成双精度的浮点类型。
On a 64-bit system, integral types are converted to 64-bit integral types, and single precision floating point types are promoted to double precision.
因此,cost是XSD 中定义的浮点类型的元素,greeting 是SOAP编码规范中定义的字符串类型的元素。
Thus, cost is an element of type float as defined by XSD, and greeting is an element of type string as defined by the SOAP encoding specification. Here is another similar example
然后会为任何可选的浮点单元(FPU)检测CPU的类型,并将其存储起来供以后使用。
The type of CPU is detected along with any optional floating-point unit (FPU) and stored away for later use.
如果需要其他的数据类型,比如说整数、浮点数或者布尔值,必须使用相应的包装器类来解析字符串。
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.
这项技术特别有助于发现使用浮点值、转换率,以及与数据类型相关长度的问题。
This technique can especially help in finding problems with floating-point values, conversion ratios, and lengths associated with data types.
这种组合不可避免地使许多程序员忽视了数据类型(如整型和浮点)和基本数据结构(如列表和映射)的缺陷。
The combination was irresistible enough that programmers could overlook the lack of data types like int and float and basic data structures like lists and maps.
通常,坐标值存储在数字列中(浮点、小数,甚至是整数),具体的类型并不影响这里给出的代码。
Usually, coordinate values are stored in numeric columns (float, decimal, or even integer), and the specific type will not affect the code presented here.
区别在于一个事实:计算机中使用的浮点数据类型无法包含每个实数。
The difference lies in the fact that floating-point data types used in computers can't hold every real number.
它们支持许多不同的类型(整型和浮点型)、字符、字符串等等。
They support Numbers of different types (integers and floating point), characters, strings, and so on.
清单1中的示例说明了如何创建多种类型的变量(整型、浮点、字符串、数组和函数)。
The example in Listing 1 illustrates variable creation of a variety of types (int, float, string, array, and function).
像C语言一样,Go提供了一系列的基本类型,常见的布尔,整数和浮点数类型都具备。
Like C, Go offers a handful of primitive types. The usual Boolean, integer and floating-point types are available.
number(只有浮点数)、boolean和特殊的nil类型都是基本类型。
Strings, numbers (floating point only), booleans, and the special nil type are basic types.
这3 个 64位模型(LP64、LLP64和ILP64)之间的区别在于非浮点数据类型。
The difference among the three 64-bit models (LP64, LLP64, and ILP64) lies in the non-pointer data types.
如果你需要在程序中存储浮点数,必须将变量类型声明为double,就像上面你写add2integers这个程序需要将变量声明为int型一样。
If you need to store floating-point values in a program, you must declare variables of type double, just as you previously had to declare variables of type int to write Add2Integers.
Blue包含许多内置类型,包括数字(包含整型和浮点型)、字符串、数组、函数等等。
Blue includes a number of built-in types, including Numbers (which covers integer and floating point types), strings, arrays, functions, and others.
所以正如能够匹配很多值一样,我们也能够匹配很多对象类型,如:整数、浮点数和字符串。
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.
SOAP定义简单的数据类型:字符串、整数、浮点数以及负整数(NegativeInteger)。
SOAP defines simple data types: String, Int, Float, and NegativeInteger.
应用推荐