Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to do Modulo (double and Big Numbers) Pin
Schehaider_Aymen23-Jun-10 22:07
Schehaider_Aymen23-Jun-10 22:07 
AnswerRe: How to do Modulo (double and Big Numbers) Pin
CPallini23-Jun-10 22:01
mveCPallini23-Jun-10 22:01 
AnswerRe: How to do Modulo (double and Big Numbers) Pin
Peter_in_278023-Jun-10 22:02
professionalPeter_in_278023-Jun-10 22:02 
GeneralRe: How to do Modulo (double and Big Numbers) Pin
Schehaider_Aymen23-Jun-10 22:10
Schehaider_Aymen23-Jun-10 22:10 
GeneralRe: How to do Modulo (double and Big Numbers) Pin
Schehaider_Aymen23-Jun-10 22:37
Schehaider_Aymen23-Jun-10 22:37 
AnswerRe: How to do Modulo (double and Big Numbers) Pin
Niklas L23-Jun-10 23:33
Niklas L23-Jun-10 23:33 
GeneralRe: How to do Modulo (double and Big Numbers) Pin
Schehaider_Aymen24-Jun-10 0:17
Schehaider_Aymen24-Jun-10 0:17 
AnswerRe: How to do Modulo (double and Big Numbers) Pin
Aescleal24-Jun-10 0:28
Aescleal24-Jun-10 0:28 
I'm a bit confused: 0xE97804B9A34AB4E fits in an __int64 with a nibble to spare. I know it depends what your compiler is and __int64 isn't a standard type but if you've got it and it doesn't need to be portable then why not use it?

Ash

PS: I'm normally against using non-portable code but at least someone trying to compile your code for a platform with a 64 bit int would at least be warned something was up.

PPS: And if you need to store it in 32 bit values you can take advantage of some properties of ints that makes it relatively easy to calculate the modulus.
QuestionTHREAD PRIORITY Pin
MsmVc23-Jun-10 19:03
MsmVc23-Jun-10 19:03 
AnswerRe: THREAD PRIORITY Pin
«_Superman_»23-Jun-10 19:25
professional«_Superman_»23-Jun-10 19:25 
GeneralRe: THREAD PRIORITY Pin
MsmVc23-Jun-10 19:38
MsmVc23-Jun-10 19:38 
GeneralRe: THREAD PRIORITY Pin
«_Superman_»23-Jun-10 19:44
professional«_Superman_»23-Jun-10 19:44 
GeneralRe: THREAD PRIORITY Pin
MsmVc23-Jun-10 19:47
MsmVc23-Jun-10 19:47 
GeneralRe: THREAD PRIORITY Pin
Code-o-mat23-Jun-10 22:07
Code-o-mat23-Jun-10 22:07 
QuestionHow to get the SerialNumber of disk driver? Pin
whiteclouds23-Jun-10 18:22
whiteclouds23-Jun-10 18:22 
AnswerRe: How to get the SerialNumber of disk driver? Pin
David Crow24-Jun-10 3:21
David Crow24-Jun-10 3:21 
QuestionReadProcessMemory() problem Pin
ALLERSLIT23-Jun-10 13:59
ALLERSLIT23-Jun-10 13:59 
AnswerRe: ReadProcessMemory() problem Pin
Richard Andrew x6423-Jun-10 14:20
professionalRichard Andrew x6423-Jun-10 14:20 
GeneralRe: ReadProcessMemory() problem Pin
ALLERSLIT23-Jun-10 14:23
ALLERSLIT23-Jun-10 14:23 
GeneralRe: ReadProcessMemory() problem Pin
ALLERSLIT23-Jun-10 14:44
ALLERSLIT23-Jun-10 14:44 
Questionchange color in c Pin
hasani200723-Jun-10 9:36
hasani200723-Jun-10 9:36 
AnswerRe: change color in c Pin
Rick York23-Jun-10 10:07
mveRick York23-Jun-10 10:07 
AnswerRe: change color in c Pin
Stephen Hewitt23-Jun-10 13:30
Stephen Hewitt23-Jun-10 13:30 
QuestionHow can a program in diferent PCs using the same DB be notified of a change? Pin
manchukuo23-Jun-10 9:14
manchukuo23-Jun-10 9:14 
AnswerRe: How can a program in diferent PCs using the same DB be notified of a change? Pin
Luc Pattyn23-Jun-10 9:28
sitebuilderLuc Pattyn23-Jun-10 9:28 

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.