Michael Thierer
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
Statistica
1 Domanda
0 Risposte
RANK
113.369
of 301.344
REPUTAZIONE
0
CONTRIBUTI
1 Domanda
0 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.0%
VOTI RICEVUTI
0
RANK
of 174.068
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Domanda
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 ...
oltre 10 anni fa | 0 risposte | 0