photo

Michael Thierer


2015 年からアクティブ

Followers: 0   Following: 0

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 in the modulo function?

Thank you very much for your support.

Best regards
Michael Thierer

統計

MATLAB Answers

1 質問
0 回答

ランク
160,150
of 301,370

評判
0

コントリビューション
1 質問
0 回答

回答採用率
0.0%

獲得投票数
0

ランク
 of 21,243

評判
N/A

平均評価
0.00

コントリビューション
0 ファイル

ダウンロード
0

ALL TIME ダウンロード
0

ランク

of 174,217

コントリビューション
0 問題
0 解答

スコア
0

バッジ数
0

コントリビューション
0 投稿

コントリビューション
0 パブリック チャネル

平均評価

コントリビューション
0 ハイライト

平均いいねの数

Feeds

表示方法

質問


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 ...

10年以上 前 | 0 件の回答 | 0

0

回答