|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi
Can someone write me the code on how to make a program to calculate mod? you know like 9 % 3 = 0 I just can't believe that they did not put that on the calc. I don't have a cable so I need the code written out so I can program it in my hand(I imagine it won't be that long) thanks. |
|
|||
|
Here is some post I just grabbed off some math forum that might do a better job explaining what mod is.
Quote:
Here is some more reading about it. http://mathforum.org/library/drmath...ect/dm_mod.html Hope that clears things up |
|
|||
|
Quote:
How would I exactly write that on my calc. I never written a program before so I am not srue if I need to include otherstuff with the stuff you wrote above. this is what I have: PROGRAM: MOD : "MODULAS" : ClrHome : Prompt A,B : DISP fpart(A/B)*B // seems to crash here : Pause : ClrHome |
|
|||
|
Quote:
I think I figured it out my problem was I was writting fpart out when I guess I should have gone to math-num-fpart and insert it in. |
|
|||
|
Try this
Code:
PROGRAM: MOD
: "MODULUS"
: ClrHome
: Prompt A,B
: fpart(A/B)*B -> X // fpart() = [2ND]>[CATALOG]>"fpart("
: DISP X
: Pause
: ClrHome
Alternatively, you could try this Code:
PROGRAM: MOD
: "MODULUS"
: ClrHome
: Prompt A,B
: A-B*int(A/B) -> X // int() = [MATH]>[NUM]>"int("
: DISP X
: Pause
: ClrHome
|
![]() |
| Viewing: Dev Hardware Forums > SOFTWARE > Programming > Need help to make a program that can do Mod for TI-83 plus |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|