Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #1 20060909 10:03:29
negative integer division and the modulus operatorI just started college this week. FINALLYYYYY!!! Majoring in computer science as some of you might recall. Turns out I'll be learning java as my first language. A logarithm is just a misspelled algorithm. #2 20060909 14:08:22
Re: negative integer division and the modulus operatordividend / divisor = quotient with a remainder #4 20060909 15:18:36
Re: negative integer division and the modulus operatorWhen programming in Java, or really any high level language, it's not so much important to understand how things work. That only starts to make sense when you get down to the assembly level. "In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..." #5 20060910 05:25:04
Re: negative integer division and the modulus operator
I don't agree. If you have some very big messy program, for example, and if it uses many modulus in it, and if it doesn't do what it's supposed to do, then you should know what's happening around the %, because the mistake may be there. If you don't know, you might pass the error, without noticyng it and this can cost you a big headache. IPBLE: Increasing Performance By Lowering Expectations. #6 20060910 06:07:10
Re: negative integer division and the modulus operatorso is anyone going to tell me how? Lol. A logarithm is just a misspelled algorithm. #7 20060910 06:13:41
Re: negative integer division and the modulus operatorFor this you will need a definition of module over the reals. But this depends. You should see some java help for the java %. Last edited by krassi_holmz (20060910 06:16:14) IPBLE: Increasing Performance By Lowering Expectations. #8 20060910 06:19:44
Re: negative integer division and the modulus operatorYoucan start with this: IPBLE: Increasing Performance By Lowering Expectations. #10 20060910 06:24:40
Re: negative integer division and the modulus operatorSo I've helped! Last edited by krassi_holmz (20060910 06:25:24) IPBLE: Increasing Performance By Lowering Expectations. #11 20060910 10:57:39
Re: negative integer division and the modulus operatorAh, maybe I misunderstood. Mikau, are you looking to find out how the computer implements modulus with negatives or what modulus does with negatives? "In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..." #12 20060911 01:10:01
Re: negative integer division and the modulus operatorI think what modulus does with negatives. I mean, with positves you use integer division. 5%2. How many times does 2 fit into five? Twice. So 2 * 2 = 4, subtract 4 from 5 and you get the remainder 1, which is the returned value from this expression. So I can figure out 5%2 without using the computer. How do I figure out 5%2 or 5%2? That was my question. A logarithm is just a misspelled algorithm. #13 20060911 03:14:48
Re: negative integer division and the modulus operatorI gave you a formula! Last edited by krassi_holmz (20060911 03:20:07) IPBLE: Increasing Performance By Lowering Expectations. #15 20060911 05:07:08
Re: negative integer division and the modulus operatorOh sorry. IPBLE: Increasing Performance By Lowering Expectations. #16 20131123 01:31:39
Re: negative integer division and the modulus operator
