Skip to content

Why use Decimal? #572

Answered by bmoscon
jinusean asked this question in Q&A
Jul 21, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

had to standardize on something. At least with decimals you can do math operations and the like. Because the data comes as a string across the wire via the websocket, when we load the json data into a dictionary we can serialize it directly to a decimal. if we were to do it as a float and then to a string or decimal, precision would be lost

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@yohplala
Comment options

@bmoscon
Comment options

@yohplala
Comment options

@bmoscon
Comment options

@yohplala
Comment options

Answer selected by bmoscon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants