From d5971b443038a4b98e2bcebf051881f729fc60d1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 12 Mar 2015 11:49:35 -0400 Subject: [PATCH] - fix quantize recipe, fixes #3322 --- doc/build/core/types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.47.3