§ {<ˆjv ãóN—dZddlmZddlmZmZmZddlmZm Z d d„Z d„Z dgZ dS) zD ``python-future``: pure Python implementation of Python 3 round(). é)Údivision)ÚPYPYÚPY26Ú bind_method)ÚDecimalÚROUND_HALF_EVENNcó—d}|€d}d}t|d¦«r| |¦«Std¦«| z}dtt |¦«¦«vrt |¦«}t |t¦«r|}n+tstj|¦«}nt|¦«}|dkrt||z ¦«|z}n|  |t¬¦«}|rt|¦«St |¦«S) a© See Python 3 documentation: uses Banker's Rounding. Delegates to the __round__ method if for some reason this exists. If not, rounds a number to a given precision in decimal digits (default 0 digits). This returns an int when called with one argument, otherwise the same type as the number. ndigits may be negative. See the test_round method in future/tests/test_builtins.py for examples. FNTrÚ __round__Ú10Únumpy)Úrounding)Úhasattrr rÚreprÚtypeÚfloatÚ isinstancerÚ from_floatÚ from_float_26ÚnewroundÚquantizerÚint)ÚnumberÚndigitsÚ return_intÚexponentÚdÚresults új/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/future/builtins/newround.pyrr s €ð€J؀؈ ؈݈v�{Ñ#Ô#ð)Ø×Ò Ñ(Ô(Ð(å�t‰}Œ} ' Ñ*€Hð•$•t˜F‘|”|Ñ$Ô$Ð$Ð$Ý�v‘”ˆå�&�'Ñ"Ô"ð&Ø ˆˆåð &ÝÔ" 6Ñ*Ô*ˆAˆAå˜fÑ%Ô%ˆAà�‚{€{ݘ!˜h™,Ñ'Ô'¨(Ñ2ˆˆà—’˜H­�Ñ?Ô?ˆàðÝ�6‰{Œ{Ðå�V‰}Œ}Ðócóæ—ddl}ddlm}t|tt f¦«rt |¦«S| |¦«s| |¦«rt t|¦«¦«S|  d|¦«dkrd}nd}t|¦«  ¦«\}}d„}||¦«dz }||t|d|zz¦«| ¦«}|S)aîConverts a float to a decimal number, exactly. Note that Decimal.from_float(0.1) is not the same as Decimal('0.1'). Since 0.1 is not exactly representable in binary floating point, the value is stored as the nearest representable value which is 0x1.999999999999ap-4. The exact equivalent of the value in decimal is 0.1000000000000000055511151231257827021181583404541015625. >>> Decimal.from_float(0.1) Decimal('0.1000000000000000055511151231257827021181583404541015625') >>> Decimal.from_float(float('nan')) Decimal('NaN') >>> Decimal.from_float(float('inf')) Decimal('Infinity') >>> Decimal.from_float(-float('inf')) Decimal('-Infinity') >>> Decimal.from_float(-0.0) Decimal('-0') rN)Ú_dec_from_triplegð?écój—|dkr,ttt|¦«¦«¦«dz SdS)Nré)ÚlenÚbinÚabs)rs rÚ bit_lengthz!from_float_26..bit_length_s/€Ø �Š6ˆ6Ý•s�3˜q™6œ6‘{”{Ñ#Ô# aÑ'Ð 'à�1ré)ÚmathÚdecimalr!rrÚlongrÚisinfÚisnanrÚcopysignr'Úas_integer_ratioÚstr) ÚfÚ_mathr!ÚsignÚnrr(Úkrs rrr=s€ð*ÐÐÐØ(Ð(Ð(Ð(Ð(Ð(å�!•c�4�[Ñ!Ô!ðÝ�q‰zŒzÐØ ‡{‚{�1�~„~𠘟š Q™œð Ý•t˜A‘w”wÑÔÐØ ‡~‚~�c˜1ÑÔ Ò$Ð$؈ˆàˆÝ ˆq‰6Œ6× "Ò "Ñ $Ô $�D€A€qðððð ˆ �1‰ Œ ˜Ñ€AØ Ð ˜d¥C¨¨!¨Q©$©¡K¤K°!°Ñ 4Ô 4€FØ €Mrr)N) Ú__doc__Ú __future__rÚ future.utilsrrrr+rrrrÚ__all__©rrúr<s�ðððð ÐÐÐÐÐØ0Ð0Ð0Ð0Ð0Ð0Ð0Ð0Ð0Ð0ð-Ð,Ð,Ð,Ð,Ð,Ð,Ð,ð+ð+ð+ð+ð`)ð)ð)ðX ˆ,€€€r