a modulo b [solved]
|
12-17-2019, 06:17 PM
(This post was last modified: 12-17-2019 06:44 PM by Aistoipok.)
Post: #1
|
|||
|
|||
a modulo b [solved]
Hello,
I'd want to obtain a mod b by typing a% b but it doesn't work (syntax error) [edit] I have to typing a %% b |
|||
12-18-2019, 06:20 AM
Post: #2
|
|||
|
|||
RE: a modulo b [solved]
hello,
The modulo command is MOD and is used as an operator, not a function, hence the syntax is: 9 MOD 4 (returns 1)... % is for percentages and is a function as in %(5,40) = 2 (40 percent of 5 is 2)... Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
12-18-2019, 08:15 AM
(This post was last modified: 12-18-2019 08:17 AM by ijabbott.)
Post: #3
|
|||
|
|||
RE: a modulo b [solved]
In CAS mode, n %% m enters a number as a member of an arithmetical ring. Strangely, it gets pretty-printed as %%(n,m) on the left of the display in textbook display mode, but results are always displayed as n' %% m on the right of the display (where n' is the member of the ring congruent to n). Trying to enter the number as %%(n,m) produces a syntax error.
— Ian Abbott |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)