Click here to Skip to main content
14,360,812 members

C / C++ / MFC

 
GeneralRe: Geolocation or how to find the country were my app is started Pin
Victor Nijegorodov17-Oct-18 22:07
memberVictor Nijegorodov17-Oct-18 22:07 
AnswerRe: Geolocation or how to find the country were my app is started Pin
jung-kreidler17-Oct-18 22:22
memberjung-kreidler17-Oct-18 22:22 
GeneralRe: Geolocation or how to find the country were my app is started Pin
Victor Nijegorodov18-Oct-18 0:51
memberVictor Nijegorodov18-Oct-18 0:51 
QuestionCalculating decimal places - Pin
ptr_Electron16-Oct-18 2:56
memberptr_Electron16-Oct-18 2:56 
AnswerRe: Calculating decimal places - Pin
Richard MacCutchan16-Oct-18 3:05
protectorRichard MacCutchan16-Oct-18 3:05 
AnswerRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 3:26
memberptr_Electron16-Oct-18 3:26 
GeneralRe: Calculating decimal places - Pin
Richard MacCutchan16-Oct-18 4:40
protectorRichard MacCutchan16-Oct-18 4:40 
SuggestionRe: Calculating decimal places - Pin
David Crow16-Oct-18 3:47
memberDavid Crow16-Oct-18 3:47 
This is not going to work as you might expect. For example, if tax has an initial value of 8.0, it may actually be stored in memory as 8.00000000001 or something similar.

What exactly are you trying to accomplish? A better solution may be just an explanation away.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


GeneralRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 3:52
memberptr_Electron16-Oct-18 3:52 
GeneralRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 4:03
memberptr_Electron16-Oct-18 4:03 
GeneralRe: Calculating decimal places - Pin
David Crow16-Oct-18 4:06
memberDavid Crow16-Oct-18 4:06 
GeneralRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 4:14
memberptr_Electron16-Oct-18 4:14 
QuestionRe: Calculating decimal places - Pin
David Crow16-Oct-18 4:20
memberDavid Crow16-Oct-18 4:20 
AnswerRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 4:29
memberptr_Electron16-Oct-18 4:29 
GeneralRe: Calculating decimal places - Pin
David Crow16-Oct-18 4:38
memberDavid Crow16-Oct-18 4:38 
GeneralRe: Calculating decimal places - Pin
leon de boer16-Oct-18 16:28
memberleon de boer16-Oct-18 16:28 
QuestionRe: Calculating decimal places - Pin
CPallini16-Oct-18 3:48
mveCPallini16-Oct-18 3:48 
AnswerRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 3:55
memberptr_Electron16-Oct-18 3:55 
GeneralRe: Calculating decimal places - Pin
CPallini16-Oct-18 4:11
mveCPallini16-Oct-18 4:11 
QuestionUsing assignment operator = for a class with const memeber variables? Pin
Member 140109547-Oct-18 13:52
memberMember 140109547-Oct-18 13:52 
AnswerRe: Using assignment operator = for a class with const memeber variables? Pin
CPallini7-Oct-18 21:36
mveCPallini7-Oct-18 21:36 
AnswerRe: Using assignment operator = for a class with const memeber variables? Pin
Richard MacCutchan7-Oct-18 22:47
protectorRichard MacCutchan7-Oct-18 22:47 
AnswerRe: Using assignment operator = for a class with const memeber variables? Pin
«_Superman_»9-Oct-18 2:51
professional«_Superman_»9-Oct-18 2:51 
QuestionAccess a pointer value changed in another class Pin
meerokh5-Oct-18 7:30
membermeerokh5-Oct-18 7:30 
AnswerRe: Access a pointer value changed in another class Pin
Victor Nijegorodov5-Oct-18 8:51
memberVictor Nijegorodov5-Oct-18 8:51 

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.