Title: Useful Math Tool for Casio Calculator Author: (Pelle Otterholm ) Here I hand over a useful tool for the Casio calculator It is a program that calculates the result of < A modulo B >. You who know about this mathematical phenomenon know how useful this tool could be. The two upper versions is programmed for the casio belonging to the 9950-type. The other two versions is possible to use on any casio calculator. The programs is designed to be called by other programs and return the result in a variable. NOTE :for models belonging to the 9950-type. I have detected that the versions for 9950-type is slower than the other versions ( I tried this by recursively call the program n times and timed this. I compared the version II-types). So I recommend you to use the version for "other models" if you want the quickest calculation (if you just use one calculation, you would not detect any difference). Version I : Minimum use of variables ( that results that the first variable input will be erased by the result of the calculation ) Program A MOD B BFrac (A/B ->A If A<0 Then A+B IfEnd Version II : use of variables that does not affect the input variables when calculation is done BFrac (A/B ->C If C<0 Then C+B IfEnd For other models : Version I : Minimum use of variables ( that results that the first variable input will be erased by the result of the calculation ) BFrac (A/B ->A A<0 => A+B Version II : use of variables that does not affect the input variables when calculation is done BFrac (A/B ->C C<0=>C+B Comments : Verion I programs : Variables used : A,B Input variables : A,B Returning variables : A Version II programs Variables used : A,B,C Input variables : A,B Returning variables : C Programmed and designed by Per-Ole Otterholm (d95peo@csd.uu.se) (c) Per-Ole OTTERHOLM (All of this is fully allowed to copy with no restrictions but one : If you hand over it to a second party you shall have the comments for the program code you hand over)