Python ipdb shell with the following output: ipdb> self.calculated_values {talk_percentage: 0} ipdb> self.calculated_values[symbol] 0 ipdb> type(self.calculated_values[symbol]) <class 'sympy.core.numbers.Zero'> ipdb> self.calculated_values[symbol] == 0 True ipdb> self.calculated_values[symbol] is 0 False ipdb> Decimal(self.calculated_values[symbol]) *** TypeError: conversion from Zero to Decimal is not supported ipdb> *** TypeError: conversion from Zero to Decimal is not supported ipdb> self.calculated_values[symbol].value *** AttributeError: 'Zero' object has no attribute 'value'
https://cdn.fosstodon.org/media_attachments/files/113/443/963/545/898/323/original/49a4f5412fd1d478.png