David Wolever - Floats are Friends: making the most of IEEE754.00000000000000002 - PyCon 2019

  Рет қаралды 5,617

PyCon 2019

PyCon 2019

Күн бұрын

Пікірлер: 4
@reginaldcrapo132
@reginaldcrapo132 5 жыл бұрын
Great talk, David.
@rodamira
@rodamira 4 жыл бұрын
Instead of using Decimal (or floats) when dealing with money, you might want to consider using something like micro units, represented as ints (see Google's DFP API). That is, one "dollar" is not 1.00, but rather, it's represented as 1000000. Ten cents would be 1000000 / 10. You get the idea. No loss of precision is likely to occur, and performance is as good as it gets.
@LambdaJack
@LambdaJack 5 жыл бұрын
It's over... 9000!!
@SVVV97
@SVVV97 5 жыл бұрын
Interesting - they should've not allowed the Python 2 usage though :D
Шок. Никокадо Авокадо похудел на 110 кг
00:44
Elana Hashman - The Black Magic of Python Wheels - PyCon 2019
26:23
Space-Time: The Biggest Problem in Physics
19:42
Quanta Magazine
Рет қаралды 99 М.
How To Code A Quantum Computer
20:42
Lukas's Lab
Рет қаралды 598 М.
Jes Ford - Getting Started Testing in Data Science - PyCon 2019
31:01
Dustin Ingram - PEP 572: The Walrus Operator - PyCon 2019
23:18
PyCon 2019
Рет қаралды 17 М.
How the Best Hackers Learn Their Craft
42:46
RSA Conference
Рет қаралды 2,6 МЛН