number_test.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:filters 作者: eflglobal 项目源码 文件源码
def test_pass_modify_rounding(self):
        """
        By default, the filter will round up any value that is halfway
        to the nearest `to_nearest` value, but this behavior can be
        customized.
        """
        self.assertFilterPasses(
            self._filter('0.00000000001', rounding=ROUND_CEILING),
            Decimal('1'),
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号