这主要是对thisotherquestion的跟进,那是一个奇怪的从long到double的转换,然后再返回到long以获得大值。我已经知道将float转换为整数类型会截断,如果截断后的值无法用目标类型表示,则行为未定义:4.9Floating-integralconversions[conv.fpint]Aprvalueofafloatingpointtypecanbeconvertedtoaprvalueofanintegertype.Theconversiontruncates;thatis,thefractionalpartisdiscarded.Thebehaviorisun