我想请教一下:MC9S12XEP100MAL是否支持16位数据与32位数据相乘的计算。比如:uint16(a)*uint32(b);

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

我想请教一下:MC9S12XEP100MAL是否支持16位数据与32位数据相乘的计算。比如:uint16(a)*uint32(b);

712 Views
金翅大鹏鸟
Contributor II

20180705163039.png

我想请教一下,图片中划线部分的计算,在MC9S12XEP100中是否可行。谢谢!

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

589 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

No, please cast the variable to the same type. Otherwise you may have unpredictable error during running code.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply