
Help Please!
#1
Posted 19 February 2006 - 02:13 PM
I've got a CASIO CFX 9850GB PLUS and would like to use it for modulo calculations. Unluckily I don't have an idea how to find the mod operator and have already looked in the handbook for it. Please help me to find the mod or as it's often referred to: the % function!
THX in advance!
rundell32
Example: how to calculate: 15 mod 7 =1 or 15 % 7 =1
#2
Posted 19 February 2006 - 09:10 PM
you need create a program.
see ....
Mod( A , B ) = A-(A/B)*B
Program "MOD"
A-(A/B)*B->C Return
Program "TEST"
0->A 0->B 0->C "A="?->A "B="?->B Prog "MOD" "A MOD B =":C
#3
Guest_Guest_rundell32_*_*
Posted 19 February 2006 - 09:32 PM
A-(A/B)*B->Cappears to be zero all the time,which actually is not astonishing....
so is there no chance to program the modulo operator with a casio calculator? why is this function not included anyway? And is there a way to declare integers ?
Help is still appreciated!
rundell32
#4
Posted 19 February 2006 - 10:20 PM
and as for declaring integers, variables A to Z, little r and theta are all numbers, you can use tham as integers or floats

#5
Posted 20 February 2006 - 04:08 PM
Have you actually read my post?I don't want to be rude, but my problem is, that I need a modulo operator.
Apparently this very basic instrument of calculation does not exist in our little friend the casio. So I will have to program it. My comment on the suggested code was that it didn't work and I thought that someone would help me with other code or at least tell me that the code works on his/her calculator.
Now I know that I probably have to use Euklid's Algorithm or is there an easier way?
To your comment on ints and floats: The casio calculator works with floats because a float can be 2=2.0
but an Integer cannot be 2.1 or something similar. I was referring to a variable which can just store integers, so that I can take profit of that fact(I thought that would be obvious). I hope that someone can help me thanks!
rundell32
#6
Posted 20 February 2006 - 07:17 PM
A - B*Int(A/B)
the code above can't work because all variables are floats
#7
Posted 20 February 2006 - 09:28 PM
Thank you very much Overlord!
I like simple and helpful answers!
Have a nice day.
rundell32
#8
Guest_Guest_*
Posted 22 March 2008 - 02:38 AM
#9
Guest_peter_*
Posted 09 March 2009 - 08:17 PM
You can use Int and Frac to get the integer and fractional part of a number, to create the mod function
A - B*Int(A/B)
the code above can't work because all variables are floats
How do I make typecasts?
#10
Guest_peter_*
Posted 09 March 2009 - 09:02 PM
Got it! OPTN->NUM-Int ... There are no hints in the manual.How do I make typecasts?
#11
Guest_nrubdr_*
Posted 20 September 2010 - 04:50 AM
I m using programmable calculator for the first time ... can anybody write steps for writing a program code to get mod.. thanks
#12
Guest_nrubdr_*
Posted 23 September 2010 - 04:39 AM
I've fx-7000 GB but unfortunately it doesn't have built in mod function . could you please specify code-steps to calculate mod . I've no idea of writing program on this calculator . It would be of great help if you share your experience..
Thanks
#13
Posted 10 March 2011 - 10:30 AM
This code works fine, but I'd like to include the modulo calculation in a Program. I suppose this would be abit like using a function. Can you do this?
I'm using a Casio fx9750G Plus.
You can use Int and Frac to get the integer and fractional part of a number, to create the mod function
A - B*Int(A/B)
the code above can't work because all variables are floats
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users