• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

programming n00b

Zanix

Diamond Member
I can't find out what this equation gives:

9 + 50 * (40 % (30 - 2) / 4) =

the register says 0x0000009f, but I can't figure out if that's right or not.

I don't know what the remainder of 30-2 and 40 should be...

Lil help guys?


:cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie:

TO ALL!!! WEEE!!
 
Originally posted by: Zanix
I can't find out what this equation gives:

9 + 50 * (40 % (30 - 2) / 4) =

the register says 0x0000009f, but I can't figure out if that's right or not.

I don't know what the remainder of 30-2 and 40 should be...

Lil help guys?


9 + 50 * (40 % (30 - 2) / 4) =
9 + 50 * (40 % 28 / 4) =
9 + 50 * (12 / 4) =
9 + 50 * 3 =
9 + 150 =
159
 
> don't know what the remainder of 30-2 and 40 should be...

You don't understand the "mod" operator? That's not goovy.

You should also look up the precedence rules for your language to see whether you need to be computing
a. (40 % 28 ) /4
b. 40 % (28 / 4)
Since they give different answers.

RTFM or Google is your only hope.
 
Originally posted by: Zanix
Originally posted by: Zanix
Originally posted by: tfinch2
159

Now how did ya get that answer?

F'it, good enough for me, HW done! woo!


ZIM! Beer me!


edit: if only fake life was as real as real life....

are you kidding me? if you can't understand this horribly easy problem, you need to drop out of programming now
 
Originally posted by: DaveSimmons
> don't know what the remainder of 30-2 and 40 should be...

You don't understand the "mod" operator? That's not goovy.

You should also look up the precedence rules for your language to see whether you need to be computing
a. (40 % 28 ) /4
b. 40 % (28 / 4)
Since they give different answers.

RTFM or Google is your only hope.

It's a. No I didn't understand the mod operator. It's called REM in MIPS and I wasn't sure if it was used the same.

Thanks for the help.
 
Originally posted by: DaveSimmons
> don't know what the remainder of 30-2 and 40 should be...

You don't understand the "mod" operator? That's not goovy.

You should also look up the precedence rules for your language to see whether you need to be computing
a. (40 % 28 ) /4
b. 40 % (28 / 4)
Since they give different answers.

RTFM or Google is your only hope.

Yes. That's one of the few things that I got wrong in an intro programming class in 'C' once.. forgot how the integral "mod" operator performed with negative values. (Not shown in the example.) Since I don't normally use it that way, I figure I'm safe.
 
Originally posted by: MAME
Originally posted by: Zanix
Originally posted by: Zanix
Originally posted by: tfinch2
159

Now how did ya get that answer?

F'it, good enough for me, HW done! woo!


ZIM! Beer me!


edit: if only fake life was as real as real life....

are you kidding me? if you can't understand this horribly easy problem, you need to drop out of programming now

You little dildo.
 
Originally posted by: Zanix
Originally posted by: MAME
Originally posted by: Zanix
Originally posted by: Zanix
Originally posted by: tfinch2
159

Now how did ya get that answer?

F'it, good enough for me, HW done! woo!


ZIM! Beer me!


edit: if only fake life was as real as real life....

are you kidding me? if you can't understand this horribly easy problem, you need to drop out of programming now

You little dildo.

If someone was going to be a dildo, why would the be little? 😛
 
Originally posted by: Zim Hosein
Originally posted by: Zanix
Originally posted by: MAME
Originally posted by: Zanix
Originally posted by: Zanix
Originally posted by: tfinch2
159

Now how did ya get that answer?

F'it, good enough for me, HW done! woo!


ZIM! Beer me!


edit: if only fake life was as real as real life....

are you kidding me? if you can't understand this horribly easy problem, you need to drop out of programming now

You little dildo.

If someone was going to be a dildo, why would the be little? 😛

Maybe if they are ineffective at stimulating properly.
 
Originally posted by: Zanix
Originally posted by: MAME
Originally posted by: Zanix
Originally posted by: Zanix
Originally posted by: tfinch2
159

Now how did ya get that answer?

F'it, good enough for me, HW done! woo!


ZIM! Beer me!


edit: if only fake life was as real as real life....

are you kidding me? if you can't understand this horribly easy problem, you need to drop out of programming now

You little dildo.

he's right.
 
Originally posted by: tfinch2
Originally posted by: Zanix
Originally posted by: MAME
Originally posted by: Zanix
Originally posted by: Zanix
Originally posted by: tfinch2
159

Now how did ya get that answer?

F'it, good enough for me, HW done! woo!


ZIM! Beer me!


edit: if only fake life was as real as real life....

are you kidding me? if you can't understand this horribly easy problem, you need to drop out of programming now

You little dildo.

he's right.

Alright, I asked for help with a math problem, not with life choices.

I apreciate your help.

I admitted in the title that I may be a beginer. I don't need crass reminders.
 
Back
Top