From: Mike Bayer Date: Thu, 12 Mar 2015 15:49:35 +0000 (-0400) Subject: - fix quantize recipe, fixes #3322 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5971b443038a4b98e2bcebf051881f729fc60d1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - fix quantize recipe, fixes #3322 --- diff --git a/doc/build/core/types.rst b/doc/build/core/types.rst index e6d43aee0a..32a97343c9 100644 --- a/doc/build/core/types.rst +++ b/doc/build/core/types.rst @@ -334,7 +334,7 @@ many decimal places. Here's a recipe that rounds them down:: def __init__(self, *arg, **kw): TypeDecorator.__init__(self, *arg, **kw) - self.quantize_int = -(self.impl.precision - self.impl.scale) + self.quantize_int = - self.impl.scale self.quantize = Decimal(10) ** self.quantize_int def process_bind_param(self, value, dialect):