Post Reply 
MOD function on HP Prime, in programming mode
03-19-2015, 03:08 PM
Post: #3
RE: MOD function on HP Prime, in programming mode
(03-19-2015 02:41 PM)Powersoft Wrote:  The mod function is working normaly on the HP Prime.
When I run this small test it prints not the reminder, but
360001.5.
...
J:=(360*1000+1.5 mod 360);

That seems like the right answer to me. Did you perhaps mean
J:=(360*1000+1.5) mod 360;

In the order of operations, mod comes before +.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: MOD function on HP Prime, in programming mode - Wes Loewer - 03-19-2015 03:08 PM



User(s) browsing this thread: 1 Guest(s)