photo

Michael Thierer


Active since 2015

Followers: 0   Following: 0

Message

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

Statistics

MATLAB Answers

1 Question
0 Answers

RANK
113,369
of 301,338

REPUTATION
0

CONTRIBUTIONS
1 Question
0 Answers

ANSWER ACCEPTANCE
0.0%

VOTES RECEIVED
0

RANK
 of 21,236

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 174,017

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

Feeds

View by

Question


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 years ago | 0 answers | 0

0

answers