Click here to Skip to main content
15,891,431 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionDealing with arbitrarily large power of 10 numbers Pin
Member 1168325115-Apr-16 3:52
Member 1168325115-Apr-16 3:52 
SuggestionRe: Dealing with arbitrarily large power of 10 numbers Pin
Richard Deeming15-Apr-16 4:21
mveRichard Deeming15-Apr-16 4:21 
GeneralRe: Dealing with arbitrarily large power of 10 numbers Pin
Member 1168325115-Apr-16 8:45
Member 1168325115-Apr-16 8:45 
AnswerRe: Dealing with arbitrarily large power of 10 numbers Pin
Eddy Vluggen15-Apr-16 5:00
professionalEddy Vluggen15-Apr-16 5:00 
AnswerRe: Dealing with arbitrarily large power of 10 numbers Pin
Kenneth Haugland15-Apr-16 14:43
mvaKenneth Haugland15-Apr-16 14:43 
AnswerRe: Dealing with arbitrarily large power of 10 numbers Pin
Mark.io5-May-16 1:56
Mark.io5-May-16 1:56 
GeneralRe: Dealing with arbitrarily large power of 10 numbers Pin
Member 116832518-May-16 22:15
Member 116832518-May-16 22:15 
AnswerRe: Dealing with arbitrarily large power of 10 numbers Pin
Daniel Pfeffer8-May-16 22:36
professionalDaniel Pfeffer8-May-16 22:36 
It sounds like you need arbitrary-precision numbers.

With C-1999 or C++2011, you are guaranteed to have a 64-bit built-in type. If you limit yourself to "digits" containing 9 decimal digits (they fit into 32 bits), you can perform the four basic arithmetic operations with "digits" that are easily converted to decimal notation.

The following article (printed in Dr. Dobb's Journal in August 1992; includes source code) should get you started: Multiple-Precision Arithmetic in C | Dr Dobb's[^]
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.

--Winston Churchill

Question~difficult~ finding combination from K arrays Pin
Member 1245958914-Apr-16 6:27
Member 1245958914-Apr-16 6:27 
GeneralRe: ~difficult~ finding combination from K arrays Pin
Richard MacCutchan14-Apr-16 20:43
mveRichard MacCutchan14-Apr-16 20:43 
QuestionCompression algorithms Pin
Member 121468278-Apr-16 9:38
Member 121468278-Apr-16 9:38 
AnswerRe: Compression algorithms Pin
Dave Kreskowiak8-Apr-16 10:37
mveDave Kreskowiak8-Apr-16 10:37 
GeneralRe: Compression algorithms Pin
Patrice T9-Apr-16 0:54
mvePatrice T9-Apr-16 0:54 
AnswerRe: Compression algorithms Pin
Patrice T9-Apr-16 0:54
mvePatrice T9-Apr-16 0:54 
AnswerRe: Compression algorithms Pin
Alan Balkany9-May-16 4:46
Alan Balkany9-May-16 4:46 
AnswerRe: Compression algorithms Pin
Rupinder Singh thind27-Jun-16 1:37
Rupinder Singh thind27-Jun-16 1:37 
Questionwhich mathematical subjects I need to know for learning algorithms Pin
Mur25018-Apr-16 6:15
Mur25018-Apr-16 6:15 
AnswerRe: which mathematical subjects I need to know for learning algorithms Pin
Richard MacCutchan8-Apr-16 6:27
mveRichard MacCutchan8-Apr-16 6:27 
GeneralRe: which mathematical subjects I need to know for learning algorithms Pin
Mur25018-Apr-16 6:40
Mur25018-Apr-16 6:40 
GeneralRe: which mathematical subjects I need to know for learning algorithms Pin
Richard MacCutchan8-Apr-16 7:11
mveRichard MacCutchan8-Apr-16 7:11 
AnswerRe: which mathematical subjects I need to know for learning algorithms Pin
Sascha Lefèvre8-Apr-16 22:02
professionalSascha Lefèvre8-Apr-16 22:02 
AnswerRe: which mathematical subjects I need to know for learning algorithms Pin
Mark.io5-May-16 2:11
Mark.io5-May-16 2:11 
AnswerRe: which mathematical subjects I need to know for learning algorithms Pin
Alan Balkany9-May-16 4:50
Alan Balkany9-May-16 4:50 
QuestionAlgorithm for Tournament tree Pin
Member 122971796-Apr-16 6:38
Member 122971796-Apr-16 6:38 
AnswerRe: Algorithm for Tournament tree Pin
Richard Deeming6-Apr-16 7:23
mveRichard Deeming6-Apr-16 7:23 

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.