Click here to Skip to main content
15,888,302 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFloating point conversion Pin
Still learning how to code3-Dec-15 22:19
Still learning how to code3-Dec-15 22:19 
AnswerRe: Floating point conversion Pin
Michael_Davies3-Dec-15 22:29
Michael_Davies3-Dec-15 22:29 
GeneralRe: Floating point conversion Pin
Richard MacCutchan3-Dec-15 22:40
mveRichard MacCutchan3-Dec-15 22:40 
GeneralRe: Floating point conversion Pin
Michael_Davies4-Dec-15 21:08
Michael_Davies4-Dec-15 21:08 
GeneralRe: Floating point conversion Pin
Richard MacCutchan4-Dec-15 22:12
mveRichard MacCutchan4-Dec-15 22:12 
AnswerRe: Floating point conversion Pin
Richard MacCutchan3-Dec-15 22:39
mveRichard MacCutchan3-Dec-15 22:39 
AnswerRe: Floating point conversion Pin
Jochen Arndt3-Dec-15 23:10
professionalJochen Arndt3-Dec-15 23:10 
GeneralRe: Floating point conversion Pin
Still learning how to code5-Dec-15 0:29
Still learning how to code5-Dec-15 0:29 
First of all, apologies for not replying earlier !
WOW, I didn't think that a few lines of code could provoke so much discussion !!!

The technique that I am trying to employ is between a PC and an Arduino (via Com port - actually USB). I used it a few years ago to transfer floating point numbers, but in the OPPOSITE direction and it worked perfectly.

Anyway, thank you all for your comments - I am amazed that the "error" is actually in the assignment as pointed out by Jochen. In this particular application, the floating point numbers will be quite small, so I think that I'll have to go for the 4 byte transfer method to maintain accuracy - but I'll be doing a lot of testing !! Thank you all once again !
Doug

AnswerRe: Floating point conversion Pin
CPallini3-Dec-15 23:30
mveCPallini3-Dec-15 23:30 
GeneralRe: Floating point conversion Pin
k50544-Dec-15 4:21
mvek50544-Dec-15 4:21 
QuestionIEEE 754-1985 Pin
enhzflep4-Dec-15 5:43
enhzflep4-Dec-15 5:43 
AnswerRe: Floating point conversion Pin
S.T.K8-Dec-15 3:19
S.T.K8-Dec-15 3:19 
QuestionComboboxx issue in MFC Pin
Amrit Agr3-Dec-15 2:48
Amrit Agr3-Dec-15 2:48 
SuggestionRe: Comboboxx issue in MFC Pin
Richard MacCutchan3-Dec-15 3:50
mveRichard MacCutchan3-Dec-15 3:50 
QuestionVisual Studio error LNK2005: variable XXX redefined in xxx.obj Pin
Javier Luis Lopez26-Nov-15 0:09
Javier Luis Lopez26-Nov-15 0:09 
AnswerRe: Visual Studio errYou should declare it or LNK2005: variable XXX redefined in xxx.obj Pin
Richard MacCutchan26-Nov-15 0:24
mveRichard MacCutchan26-Nov-15 0:24 
GeneralRe: Visual Studio errYou should declare it or LNK2005: variable XXX redefined in xxx.obj Pin
Javier Luis Lopez26-Nov-15 0:53
Javier Luis Lopez26-Nov-15 0:53 
GeneralRe: Visual Studio errYou should declare it or LNK2005: variable XXX redefined in xxx.obj Pin
Richard MacCutchan26-Nov-15 1:11
mveRichard MacCutchan26-Nov-15 1:11 
GeneralRe: Visual Studio errYou should declare it or LNK2005: variable XXX redefined in xxx.obj Pin
Javier Luis Lopez26-Nov-15 3:29
Javier Luis Lopez26-Nov-15 3:29 
GeneralRe: Visual Studio errYou should declare it or LNK2005: variable XXX redefined in xxx.obj Pin
Richard MacCutchan26-Nov-15 4:26
mveRichard MacCutchan26-Nov-15 4:26 
AnswerRe: Visual Studio error LNK2005: variable XXX redefined in xxx.obj Pin
Daniel Pfeffer26-Nov-15 6:34
professionalDaniel Pfeffer26-Nov-15 6:34 
GeneralRe: Visual Studio error LNK2005: variable XXX redefined in xxx.obj Pin
CPallini26-Nov-15 21:09
mveCPallini26-Nov-15 21:09 
GeneralRe: Visual Studio error LNK2005: variable XXX redefined in xxx.obj Pin
Richard MacCutchan26-Nov-15 22:23
mveRichard MacCutchan26-Nov-15 22:23 
GeneralRe: Visual Studio error LNK2005: variable XXX redefined in xxx.obj Pin
Daniel Pfeffer28-Nov-15 6:51
professionalDaniel Pfeffer28-Nov-15 6:51 
AnswerRe: Visual Studio error LNK2005: variable XXX redefined in xxx.obj Pin
«_Superman_»29-Nov-15 18:46
professional«_Superman_»29-Nov-15 18:46 

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.