Click here to Skip to main content
15,914,111 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Growl Pin
raddevus30-Aug-17 1:22
mvaraddevus30-Aug-17 1:22 
GeneralRe: Growl Pin
User 1106097929-Aug-17 18:30
User 1106097929-Aug-17 18:30 
GeneralRe: Growl Pin
CodeWraith29-Aug-17 21:43
CodeWraith29-Aug-17 21:43 
GeneralRe: Growl Pin
harold aptroot29-Aug-17 23:40
harold aptroot29-Aug-17 23:40 
GeneralRe: Growl Pin
Richard Deeming30-Aug-17 1:19
mveRichard Deeming30-Aug-17 1:19 
GeneralRe: Growl Pin
PIEBALDconsult31-Aug-17 9:00
mvePIEBALDconsult31-Aug-17 9:00 
GeneralRe: Growl Pin
PIEBALDconsult30-Aug-17 13:39
mvePIEBALDconsult30-Aug-17 13:39 
GeneralRe: Growl Pin
pth1431-Aug-17 1:41
pth1431-Aug-17 1:41 
I don't think this is really wrong.
This is probably due to confusion between modulo and remainder.
There seems to be the same for positive numbers.
But for negative numbers, there are different.
Remainder work as expected.
But modulo work as following: returns the difference of the first number, and the biggest integer (possibly negative) multiple of the second number that is less than the first number.
So in our example: -1 - -20 = 19
That's why lot of programming languages have 2 "modulo" operators, one for modulo operations and one for remainder operations.
GeneralRe: Growl Pin
Ancandune31-Aug-17 3:07
Ancandune31-Aug-17 3:07 
GeneralRe: Growl Pin
PIEBALDconsult1-Sep-17 12:05
mvePIEBALDconsult1-Sep-17 12:05 
NewsAnd then there's Bernanke... Pin
Marc Clifton29-Aug-17 10:38
mvaMarc Clifton29-Aug-17 10:38 
NewsOn Sir Richard Branson's Necker Island, Bitfury Hosts Third Annual Blockchain Summit Pin
Marc Clifton29-Aug-17 10:35
mvaMarc Clifton29-Aug-17 10:35 
GeneralFound a Way to Crash Visual Studio 2017 Pin
Rick York29-Aug-17 10:22
mveRick York29-Aug-17 10:22 
GeneralRe: Found a Way to Crash Visual Studio 2017 Pin
Marc Clifton29-Aug-17 10:32
mvaMarc Clifton29-Aug-17 10:32 
GeneralRe: Found a Way to Crash Visual Studio 2017 Pin
Richard Deeming30-Aug-17 1:20
mveRichard Deeming30-Aug-17 1:20 
GeneralRe: Found a Way to Crash Visual Studio 2017 Pin
lopatir30-Aug-17 17:05
lopatir30-Aug-17 17:05 
GeneralRe: Found a Way to Crash Visual Studio 2017 Pin
Richard Deeming31-Aug-17 1:31
mveRichard Deeming31-Aug-17 1:31 
GeneralElephant Day PinPopular
W Balboos, GHB29-Aug-17 6:33
W Balboos, GHB29-Aug-17 6:33 
GeneralRe: Elephant Day Pin
Tim Carmichael29-Aug-17 7:00
Tim Carmichael29-Aug-17 7:00 
GeneralRe: Elephant Day Pin
CodeWraith29-Aug-17 7:16
CodeWraith29-Aug-17 7:16 
GeneralRe: Elephant Day PinPopular
lopatir29-Aug-17 7:40
lopatir29-Aug-17 7:40 
GeneralRe: Elephant Day Pin
CodeWraith29-Aug-17 8:18
CodeWraith29-Aug-17 8:18 
GeneralRe: Elephant Day Pin
W Balboos, GHB29-Aug-17 8:27
W Balboos, GHB29-Aug-17 8:27 
GeneralRe: Elephant Day Pin
CodeWraith29-Aug-17 9:48
CodeWraith29-Aug-17 9:48 
GeneralRe: Elephant Day Pin
W Balboos, GHB30-Aug-17 0:15
W Balboos, GHB30-Aug-17 0:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.