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 답변

순위
214,508
of 301,432

평판
0

참여
1 질문
0 답변

답변 채택
0.0%

획득한 표
0

순위
 of 21,280

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 174,555

참여
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

답변