Aldebaran
-Interested User-
Posts: 8
Joined: Sep 24, 2015
|
Posted: Oct 28, 2015 03:06 AM
Msg. 1 of 3
Dear Forum
In the documentation and in a practice (so far) I have only seen numbers sent to my client represented as xxx.xxx, i.e., no scientific notation or the like. Is this a guaranteed format?
If that is the case, conversion of the strings to doubles can be done even faster than with strtod (I'm working in C/C++) by using a simple "naive" conversion instead of the fully fledged version in strtod.
Any advice pro et contra would of course be highly appreciated if some one has found even better ways to parse the incoming strings to times, numbers, what-have-you.
All the best, Peter
|
DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006
|
Posted: Oct 28, 2015 08:02 AM
Msg. 2 of 3
Good morning,
You are correct, all of our price data will be in presented in decimal format.
Tim
|
Aldebaran
-Interested User-
Posts: 8
Joined: Sep 24, 2015
|
Posted: Oct 28, 2015 11:20 AM
Msg. 3 of 3
Once again, thanks for a prompt and useful reply, Tim!
Peter
|