• This would only happen if the value were a "narrowing conversion," where a value exceeded the possible range value allowed in the new type, such as trying to convert from long to int, for example.

    只有当一个值 “转换为范围更小的类型” 时,即这个值超出了新类型允许的范围,例如试图从long 类型转换为int 类型,才会发生这样的情况。

    youdao

  • This is distinguished from a narrowing conversion, which may lose data.

    这与收缩转换不同,后者可能丢失数据。

    youdao

  • An example of a narrowing conversion is converting a 64-bit signed integer to a 32-bit signed integer.

    缩小转换的范例是转换64位元带正负号的整数为32位元带正负号的整数。

    youdao

  • Again, you must be aware of the effect of a narrowing conversion when casting to a smaller type, otherwise you might unknowingly lose information during the cast.

    同样地,当造型成一种较小的类型时,必须留意“缩小转换”的后果。否则会在造型过程中不知不觉地丢失信息。

    youdao

  • Again, you must be aware of the effect of a narrowing conversion when casting to a smaller type, otherwise you might unknowingly lose information during the cast.

    同样地,当造型成一种较小的类型时,必须留意“缩小转换”的后果。否则会在造型过程中不知不觉地丢失信息。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定