补救方法是更改代码,以强制转换为正确的对象。
The remedy is to change the code to cast correctly to the right object.
用于弱类型变量,以将它们强制转换为另一种类型。
确保在计算中强制转换为整数的数值不大于整数范围。
Make sure that Numbers used in calculations that are coerced into integers do not have results larger than integers.
同样,也可以将返回的对象强制转换为适当的COM接口。
Likewise, you can cast the returned object to an appropriate COM interface.
说明:返回的功能及1型和2不符合强制转换为类型兼容。
Return type for function &1 in &2 not compatible with CAST TO type.
当数字从一种类型强制转换为另一种类型时,通常会发生转换。
Conversion typically occurs when the number is cast from one type to another type.
当使用接口的类想要将该接口强制转换为其他接口或类类型时。
The class using the interface will want to cast that interface to other interface or class types.
通常应将返回的对象强制转换为请求资源时设置的属性所要求的类型。
Typically you would cast the returned object to the type required by the property that you are setting when requesting the resource.
在这种情况下,会将32位值左移,其结果是值强制转换为64位值。
In this case, a 32-bit value was shifted left, and the result of that shift was cast to a 64-bit value.
注意,在清单2中,从集合中提取项并不需要将其强制转换为正确的类型。
Notice in Listing 2 that fetching an item out of a collection doesn't require a cast to the right type.
若将字符和数字相加,则会将字符强制转换为数值,而后将两个数字相加。
For addition of a char and a number, the char is coerced into a numeric value, and the two Numbers are added.
如果不希望丢失位,请在对值进行移位之前,先将它强制转换为64位数。
If you do not want to lose bits, cast the value to be shifted to a 64-bit quantity before it is shifted.
那根本不是我们打算做的,如果是的话,我们完全可以显式地强制转换为界限。
That's not what we intended at all, and if it were, we would have simply cast to the bound explicitly.
所有元素和属性都是字符串,但是在进行数字比较时会自动被强制转换为整数值。
All elements and attributes are strings, but are automatically cast as integer values for numeric comparisons.
例如,通过使用类型名称可以将一个值强制转换为另一种类型,就象是一个函数一样。
For example, a value can be cast to another type by using the type name as if it were a function. So you could cast a value to an unsigned integer using the code fragment in Listing 12.
要从集合中提取元素,您必须知道集合中对象的类型,以将其强制转换为合适的局部变量。
To fetch elements from the collection, you had to know the type of object in the collection so you could cast it back to the appropriate local variable.
如上所述,Route节点对表达式求值,结果将强制转换为布尔值,以生成真或假的测试条件。
As described above, the Route node evaluates an expression, the result of which is then cast as a Boolean to produce a true or false test condition.
一种解决方案是更改查询,将十进制类型强制转换为较小的数据类型,或者转换为字符串或二进制。
One solution would be to change the query to cast the decimal type to either a smaller datatype or convert to string or binary.
您也可以使用固定精度的十进制类型,或者在使用浮点数之前将它们强制转换为固定精度的十进制类型。
You can also use a fixed-precision decimal type, or cast floating-point Numbers to a fixed-precision decimal type before you work with them.
当您将其强制转换为不同的类型时,远程处理基础结构跟踪最常用的类型,以防止不必要地加载该类型。
As you cast it into different types, the remoting infrastructure keeps track of the most used type to avoid loading the type unnecessarily.
通过按范围对连续变量值进行编组,然后将它们进一步细分来创建分层结构,可以将这些变量强制转换为分类特性形式。
Continuous variables can also be cast into the appearance of taxonomic features by organizing their value into ranges, which can then be further subdivided to create a hierarchy.
嵌入式sql语句将unit表中的主管姓名强制转换为xml类型(本例中为xml字符串),然后将其提供给XQuery。
The embedded SQL statement casts the manager names in the unit table into an XML type (in this case into an XML string), and feeds them into the XQuery.
但是,因为隐式转换不需要程序员将一种类型显式强制转换为另一种类型,所以使用隐式转换时必须格外小心,以免出现意外结果。
However, because implicit conversions do not require programmers to explicitly cast from one type to the other, care must be taken to prevent unexpected results.
在对检索到的值进行任何特定于String的操作之前,必须将它强制转换为String,即使是将检索到的元素添加到同一代码块中,也是如此!
Before we can do anything String-specific with that retrieved value, we have to cast it to a String, even when the retrieved element was added in the same code block!
一旦找到此Mbean,代码会随后通过使用xsadmin示例应用程序中的JMXProxy类将 MBean 强制转换为代理对象。
Once this MBean is located, the code then casts the MBean into a proxy object by using the JMXProxy class from the xsadmin sample application.
改变了类型强制规则,以保持数组(更为常见)中的类型 ,而不是转换为Python 标量的类型。
The type coercion rules have changed to preserve types in arrays (more often), rather than converting to the type of a Python scalar.
这种强制转换会将存储的1转换为- 1,因而这种比较会产生意外的结果。
This cast will convert the stored 1 to a -1 and the comparison can yield unexpected results.
这种强制转换会将存储的1转换为- 1,因而这种比较会产生意外的结果。
This cast will convert the stored 1 to a -1 and the comparison can yield unexpected results.
应用推荐