Re: hello, Noob to Javascript looking for help. Programming Web Development by almostbob "remainder " is referred to as modulus and [url=http://www.w3schools.com/jS/js_operators.asp]modulus operator[/url] is % you should be able to code it from this short sample or read through the link above[code=javascript]if( variable % 2 = 0 ) { // do something along the lines of document.write [/code] Remainder for floating variable??? Programming Software Development by sunnyy221 hi friends is there any way to get remainder for **flaoating variables** in C programming?? Re: remainder problem Programming Software Development by skatamatic … divides x by ten and returns the remainder. 456 / 10 = 45 with a 6 remainder. Therefore the output is 46 =P. Please… Re: remainder program in C++ Programming Software Development by Salem Moving it to the "job offers" forum gets my vote. It's also being broadcast all over the net [url]http://forums.devshed.com/c-programming-42/remainder-program-in-c-390830.html[/url] Re: Polynomial operators-addition,substraction,division,remainder etc Programming Software Development by mnv29brt …have a pseudo code or the logic : R=Remainder polynomial, Z=temporary polynomial. So initially I have… numerators. I do my math to calculate the remainder and it should return something like (R=0x…R to be the correct order of the Remainder minus the 0 coefficient terms (in this case…). So in this case I resize my remainder to order=1 and I loop in the… Re: C++ Division Remainder Help Programming Software Development by Dave Sinkula …divide(int numerator, int denominator, int* quotient, int* remainder) { *quotient = numerator / denominator; *remainder = denominator % numerator; } int main(void) { …quot;quotient = %d\n", quotient); printf("remainder = %d\n", remainder); return 0; } /* my output numerator = 42 … Displaying a remainder in java Programming Software Development by jtodd …to write a program and display just the remainder after two numbers have been divided. Here is…; if( input1 % input2 == 0) System.out.println( "No Remainder" ); if( input1 % input2 != 0) System.out.printf( …"%s%d\n", "The Remainder is:", answer); } } For some reason instead of… Re: Displaying a remainder in java Programming Software Development by kvass 2%3 is the remainder of 2/3, or "3 into 2". 3 goes into 2 zero times, but there are 2 left over, so the remainder is 2. 3%2 is the remainder of 3/2, or "2 into 3". 2 goes into 3 one time with one left over, so the remainder is 1. Re: C++ Division Remainder Help Programming Software Development by Ghost …ª and are set by the function to the quotient and remainder of dividing the first argumentª by the second argumentª. The… divide(int numerator,int denominator,int* quotient, int* remainder){ *(quotient=&numerator/&denominator); *(remainder=&denominator%&numerator); } But, when I… Polynomial operators-addition,substraction,division,remainder etc Programming Software Development by mnv29brt … division Poly operator%(const Poly &); // Returns remainder from polynomial division void Divide(const Poly &d… Poly &r); // d=divisor; q=quotient; r=remainder }; #endif [/code] //the alogrithm for my poly.cpp …; cout << "\n\n Division and remainder:\n\n"; q=f/g; cout <<… Re: Polynomial operators-addition,substraction,division,remainder etc Programming Software Development by mnv29brt … polynomial division Poly operator%(const Poly &); // Returns remainder from polynomial division void Divide(const Poly &d,… Poly &r); // d=divisor; q=quotient; r=remainder }; #endif //the alogrithm for my poly.cpp is as …endl; cout << "\n\n Division and remainder:\n\n"; q=f/g; cout <<… Re: Displaying a remainder in java Programming Software Development by BestJewSinceJC How could the remainder of 2/3 be higher than 2? [url]http://www.icoachmath.com/Controls/Remainder.html[/url] Re: Displaying a remainder in java Programming Software Development by jtodd … % input2; if( input1 % input2 == 0) System.out.println( "No Remainder" ); if( input1 % input2 != 0) System.out.printf( "%s… Re: Polynomial operators-addition,substraction,division,remainder etc Programming Software Development by mnv29brt … &r); // d=divisor; q=quotient; r=remainder this does the division and remainder for me.But most Importantly I still dont… Re: Polynomial operators-addition,substraction,division,remainder etc Programming Software Development by dougy83 … now? Division? Is that why you're talking about a remainder? Coding polynomial addition/subtraction/multiplication/division is certainly not impossible… of division is represented as a valid polynomial quotient and remainder (which a single instance of your poly class obviously won… Re: Displaying a remainder in java Programming Software Development by kvass … put them together with + signs: System.out.print("The Remainder is: " + answer + "\n"); You should know that… Re: Displaying a remainder in java Programming Software Development by jtodd … 66667 becasue 2/3=.6666667. So it should return the remainder 66667..... right? When I run the program with those numbers… Re: Displaying a remainder in java Programming Software Development by kvass jtodd, you are thinking of division in terms of more advanced mathematics. Think back to grade 2 or 3 when you didn't know about decimals and the teacher was like "ok class, what is the remainder?" and you had to answer in a whole number? That is what x%y gives you. Re: Displaying a remainder in java Programming Software Development by jtodd Ok, I haven't thought of it like that. So, if 2 is input1 and 3 is input2 the answer(remainder) should be 1?? Is that right? If so my program is giving me 2. Re: Displaying a remainder in java Programming Software Development by BestJewSinceJC Look up what a remainder is on google. Our job isn't to teach basic math. Re: getting and using a remainder Programming Software Development by Suzie999 I think you first need to store the remainder and then work with it. int remainder = (atoi( argv[1] ) % atoi( argv[2]); Now you work with `remainder` Re: getting and using a remainder Programming Software Development by mike_2000_17 if ( atoi( argv[1] ) % atoi( argv[2] ) == .33333 ) You misunderstood what the remainder is. The remainder is an integer value, not a fractional value. In other words, `7 % 3` gives `1` because 3 fits two times into 7 and then there is 1 left, that's the *remainder*. int remainder problem! Programming Software Development by mstrmnd2008 … part down but for minutes im trying to use the remainder funtion. [code=cplusplus] #include <cstdlib> #include <iostream…;<secns; cin>>s; } return 0; } [/code] the remainder output should be 11 but im getting 703?????? anyone that… Advantage of floating point over integer remainder operator Programming Software Development by I<LateNupurGuha When [B][I]floating point division[/I][/B] operator is [I]overloaded[/I], it [U]remains nothing[/U] ; :idea:So what is the [COLOR="Green"]role and importance[/COLOR] of [U][B][I]floating point remainder operator[/I][/B][/U],:icon_rolleyes: how it [COLOR="Red"]differentiate[/COLOR] from [B]integer remainder operator[/B] ? getting and using a remainder Programming Software Development by lewashby …'M trying to figure out how I can use the remainder of divison to make a decision but I can not… I think and want it to respond based upon the remainder of dividing two command line arguments (linux). It never out… Re: How to get a quotient & a Remainder Programming Software Development by selvaganapathy Hi, In vb, MOD is an operator to find Remainder Ex [CODE=VB] Dim iRemainder As Integer iRemainder = 2008 MOD 10 'Here 8 is the Remainder [/CODE] If you divide one number by another number you get quotient. Re: C++ Division Remainder Help Programming Software Development by wangchung While this post is very old, there is a mistake: > *remainder = denominator % numerator; should be *remainder = numerator % denominator; http://www.cprogramming.com/tutorial/modulus.html Re: getting and using a remainder Programming Software Development by Lucaci Andrew Well, as **mike** and **Suzie** said, the remainder is the part that remains after dividing two numbers. It … C++ Division Remainder Help Programming Software Development by Ghost When using C++, how do you find the REMAINDER of two numbers and store it in an integer. I think the answer is: [B]X % Y = Int Z;[/B] :idea: Please help. Thanks :lol: , C++ Re: C++ Division Remainder Help Programming Software Development by Chainsaw like you said, "int z = x % y" gives the remainder of x / y int z. Just turn your expression around.