这种转换有时被称为缩小转换(narrowing conversion),因为是显式地使数值变得更小以适应目标类型。 为了实现两种不兼容类型之间的转换,必须使用强制类型转换。
基于84个网页-相关网页
强制转换会造成数据丢失,简单来说就是装不下的部分将会被丢弃,所以强制转换也成为缩小转换(narrow Conversion) 强制类型转..
基于8个网页-相关网页
图片调整大小压缩转换 VSO Image Resizer
如果其中一个转换是扩展转换,反向转换便是缩小转换。
If one of these conversions is widening, the reverse conversion might be narrowing.
缩小转换的范例是转换64位元带正负号的整数为32位元带正负号的整数。
An example of a narrowing conversion is converting a 64-bit signed integer to a 32-bit signed integer.
调用过程时使用扩大到对应参数类型的变量,从参数到变量的转换则为缩小转换。
A procedure is called with an argument that widens to the corresponding parameter type, and the conversion from the parameter to the argument is narrowing.
应用推荐