Problems using modulo in stateflow

Dear Sir / Madam,
I have issues with using the modulo function in Stateflow. To get of a absolute value in minutes the hours and minutes I do following:
tHtgAtvCnt // absolute minutes tHtgInAtvStd // hours tHtgInAtvMin // minutes
{tHtgInAtvStd = tHtgAtvCnt / 60; // Calculate hours tHtgInAtvMin = tHtgAtvCnt %% 60;} // Calculate minutes
If the value of the absolute minutes (tHtgAtvCnt) is bigger than a specific value (tested with 2^31) the result of the calculation is always -8. Is there any limitation on the modulo function?
Thank you very much for your support.
Best regards Michael Thierer

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStateflow についてさらに検索

質問済み:

2015 年 10 月 12 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by