why double instead of float

Created at 20 Dec 2014, 23:39
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
olddirtypipster's avatar

olddirtypipster

Joined 18.04.2014

why double instead of float
20 Dec 2014, 23:39


Due to round off errors while using float or double, it is advised that monetary values be represented using the decimal type.

Could someone at Spotware please explain why they decided to use double to represent their prices then? Would this not cause significant issues when performing certain calculations?

Very concerned. considering what this API is intended to do, and the finances that are at stake for professional use.


@olddirtypipster
Replies

Spotware
31 Dec 2014, 11:04

Dear Trader,

We do not perform important calculations in double numbers. Most values are calculated in other data types and then copied to doubles in the API.


@Spotware