Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »Number format. Possible speedup of client
Author Topic: Number format. Possible speedup of client (3 messages, Page 1 of 1)

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
 

 

Time: Fri September 20, 2024 7:48 PM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003