Lines Matching +full:sign +full:- +full:compare
2 * Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved.
23 "getcontext($module, /)\n--\n\n\
28 "setcontext($module, context, /)\n--\n\n\
33 "localcontext($module, /, ctx=None)\n--\n\n\
35 on entry to the with-statement and restore the previous default context when\n\
36 exiting the with-statement. If no context is specified, a copy of the current\n\
42 "IEEEContext($module, bits, /)\n--\n\n\
56 "Decimal(value=\"0\", context=None)\n--\n\n\
64 "adjusted($self, /)\n--\n\n\
65 Return the adjusted exponent of the number. Defined as exp + digits - 1.\n\
69 "as_tuple($self, /)\n--\n\n\
74 "as_integer_ratio($self, /)\n--\n\n\
75 Decimal.as_integer_ratio() -> (int, int)\n\
83 "canonical($self, /)\n--\n\n\
90 "compare($self, /, other, context=None)\n--\n\n\
91 Compare self to other. Return a decimal value:\n\
94 a < b ==> Decimal('-1')\n\
100 "compare_signal($self, /, other, context=None)\n--\n\n\
101 Identical to compare, except that all NaNs signal.\n\
105 "compare_total($self, /, other, context=None)\n--\n\n\
106 Compare two operands using their abstract representation rather than\n\
107 their numerical value. Similar to the compare() method, but the result\n\
109 the same numeric value but different representations compare unequal\n\
113 Decimal('-1')\n\
117 Decimal('-1') if the first operand is lower in the total order than the second,\n\
127 "compare_total_mag($self, /, other, context=None)\n--\n\n\
128 Compare two operands using their abstract representation rather than their\n\
129 value as in compare_total(), but ignoring the sign of each operand.\n\
139 "conjugate($self, /)\n--\n\n\
144 "copy_abs($self, /)\n--\n\n\
150 "copy_negate($self, /)\n--\n\n\
156 "copy_sign($self, /, other, context=None)\n--\n\n\
157 Return a copy of the first operand with the sign set to be the same as the\n\
158 sign of the second operand. For example:\n\
160 >>> Decimal('2.3').copy_sign(Decimal('-1.5'))\n\
161 Decimal('-2.3')\n\
169 "exp($self, /, context=None)\n--\n\n\
176 "from_float($type, f, /)\n--\n\n\
187 >>> Decimal.from_float(float('-inf'))\n\
188 Decimal('-Infinity')\n\
193 "fma($self, /, other, third, context=None)\n--\n\n\
194 Fused multiply-add. Return self*other+third with no rounding of the\n\
203 "is_canonical($self, /)\n--\n\n\
210 "is_finite($self, /)\n--\n\n\
216 "is_infinite($self, /)\n--\n\n\
222 "is_nan($self, /)\n--\n\n\
228 "is_normal($self, /, context=None)\n--\n\n\
229 Return True if the argument is a normal finite non-zero number with an\n\
235 "is_qnan($self, /)\n--\n\n\
240 "is_signed($self, /)\n--\n\n\
241 Return True if the argument has a negative sign and False otherwise.\n\
246 "is_snan($self, /)\n--\n\n\
251 "is_subnormal($self, /, context=None)\n--\n\n\
253 subnormal if it is non-zero, finite, and has an adjusted exponent less\n\
258 "is_zero($self, /)\n--\n\n\
264 "ln($self, /, context=None)\n--\n\n\
270 "log10($self, /, context=None)\n--\n\n\
276 "logb($self, /, context=None)\n--\n\n\
277 For a non-zero number, return the adjusted exponent of the operand as a\n\
278 Decimal instance. If the operand is a zero, then Decimal('-Infinity') is\n\
284 "logical_and($self, /, other, context=None)\n--\n\n\
285 Return the digit-wise 'and' of the two (logical) operands.\n\
289 "logical_invert($self, /, context=None)\n--\n\n\
290 Return the digit-wise inversion of the (logical) operand.\n\
294 "logical_or($self, /, other, context=None)\n--\n\n\
295 Return the digit-wise 'or' of the two (logical) operands.\n\
299 "logical_xor($self, /, other, context=None)\n--\n\n\
300 Return the digit-wise 'exclusive or' of the two (logical) operands.\n\
304 "max($self, /, other, context=None)\n--\n\n\
310 "max_mag($self, /, other, context=None)\n--\n\n\
316 "min($self, /, other, context=None)\n--\n\n\
322 "min_mag($self, /, other, context=None)\n--\n\n\
328 "next_minus($self, /, context=None)\n--\n\n\
335 "next_plus($self, /, context=None)\n--\n\n\
342 "next_toward($self, /, other, context=None)\n--\n\n\
345 numerically equal, return a copy of the first operand with the sign set\n\
346 to be the same as the sign of the second operand.\n\
350 "normalize($self, /, context=None)\n--\n\n\
359 "number_class($self, /, context=None)\n--\n\n\
363 * '-Infinity', indicating that the operand is negative infinity.\n\
364 * '-Normal', indicating that the operand is a negative normal number.\n\
365 * '-Subnormal', indicating that the operand is negative and subnormal.\n\
366 * '-Zero', indicating that the operand is a negative zero.\n\
377 "quantize($self, /, exp, rounding=None, context=None)\n--\n\n\
387 is always equal to that of the right-hand operand.\n\
399 "radix($self, /)\n--\n\n\
405 "remainder_near($self, /, other, context=None)\n--\n\n\
407 self % other in that the sign of the remainder is chosen so as to minimize\n\
408 its absolute value. More precisely, the return value is self - n * other\n\
412 If the result is zero then its sign will be the sign of self.\n\
416 "rotate($self, /, other, context=None)\n--\n\n\
419 the range -precision through precision. The absolute value of the second\n\
423 length precision if necessary. The sign and exponent of the first operand are\n\
428 "same_quantum($self, /, other, context=None)\n--\n\n\
437 "scaleb($self, /, other, context=None)\n--\n\n\
444 "shift($self, /, other, context=None)\n--\n\n\
447 the range -precision through precision. The absolute value of the second\n\
450 right. Digits shifted into the coefficient are zeros. The sign and exponent\n\
455 "sqrt($self, /, context=None)\n--\n\n\
461 "to_eng_string($self, /, context=None)\n--\n\n\
462 Convert to an engineering-type string. Engineering notation has an exponent\n\
466 The value of context.capitals determines whether the exponent sign is lower\n\
471 "to_integral($self, /, rounding=None, context=None)\n--\n\n\
477 "to_integral_exact($self, /, rounding=None, context=None)\n--\n\n\
485 "to_integral_value($self, /, rounding=None, context=None)\n--\n\n\
498 …e, rounding=None, Emin=None, Emax=None, capitals=None, clamp=None, flags=None, traps=None)\n--\n\n\
503 >>> c = Context(prec=28, Emin=-425000000, Emax=425000000,\n\
513 "apply($self, x, /)\n--\n\n\
519 "clear_flags($self, /)\n--\n\n\
524 "clear_traps($self, /)\n--\n\n\
529 "copy($self, /)\n--\n\n\
534 "copy_decimal($self, x, /)\n--\n\n\
539 "create_decimal($self, num=\"0\", /)\n--\n\n\
545 "create_decimal_from_float($self, f, /)\n--\n\n\
551 "Etiny($self, /)\n--\n\n\
552 Return a value equal to Emin - prec + 1, which is the minimum exponent value\n\
557 "Etop($self, /)\n--\n\n\
558 Return a value equal to Emax - prec + 1. This is the maximum exponent\n\
564 "abs($self, x, /)\n--\n\n\
569 "add($self, x, y, /)\n--\n\n\
574 "canonical($self, x, /)\n--\n\n\
579 "compare($self, x, y, /)\n--\n\n\
580 Compare x and y numerically.\n\
584 "compare_signal($self, x, y, /)\n--\n\n\
585 Compare x and y numerically. All NaNs signal.\n\
589 "compare_total($self, x, y, /)\n--\n\n\
590 Compare x and y using their abstract representation.\n\
594 "compare_total_mag($self, x, y, /)\n--\n\n\
595 Compare x and y using their abstract representation, ignoring sign.\n\
599 "copy_abs($self, x, /)\n--\n\n\
600 Return a copy of x with the sign set to 0.\n\
604 "copy_negate($self, x, /)\n--\n\n\
605 Return a copy of x with the sign inverted.\n\
609 "copy_sign($self, x, y, /)\n--\n\n\
610 Copy the sign from y to x.\n\
614 "divide($self, x, y, /)\n--\n\n\
619 "divide_int($self, x, y, /)\n--\n\n\
624 "divmod($self, x, y, /)\n--\n\n\
629 "exp($self, x, /)\n--\n\n\
634 "fma($self, x, y, z, /)\n--\n\n\
639 "is_canonical($self, x, /)\n--\n\n\
644 "is_finite($self, x, /)\n--\n\n\
649 "is_infinite($self, x, /)\n--\n\n\
654 "is_nan($self, x, /)\n--\n\n\
659 "is_normal($self, x, /)\n--\n\n\
664 "is_qnan($self, x, /)\n--\n\n\
669 "is_signed($self, x, /)\n--\n\n\
674 "is_snan($self, x, /)\n--\n\n\
679 "is_subnormal($self, x, /)\n--\n\n\
684 "is_zero($self, x, /)\n--\n\n\
689 "ln($self, x, /)\n--\n\n\
694 "log10($self, x, /)\n--\n\n\
699 "logb($self, x, /)\n--\n\n\
704 "logical_and($self, x, y, /)\n--\n\n\
705 Digit-wise and of x and y.\n\
709 "logical_invert($self, x, /)\n--\n\n\
714 "logical_or($self, x, y, /)\n--\n\n\
715 Digit-wise or of x and y.\n\
719 "logical_xor($self, x, y, /)\n--\n\n\
720 Digit-wise xor of x and y.\n\
724 "max($self, x, y, /)\n--\n\n\
725 Compare the values numerically and return the maximum.\n\
729 "max_mag($self, x, y, /)\n--\n\n\
730 Compare the values numerically with their sign ignored.\n\
734 "min($self, x, y, /)\n--\n\n\
735 Compare the values numerically and return the minimum.\n\
739 "min_mag($self, x, y, /)\n--\n\n\
740 Compare the values numerically with their sign ignored.\n\
744 "minus($self, x, /)\n--\n\n\
750 "multiply($self, x, y, /)\n--\n\n\
755 "next_minus($self, x, /)\n--\n\n\
760 "next_plus($self, x, /)\n--\n\n\
765 "next_toward($self, x, y, /)\n--\n\n\
770 "normalize($self, x, /)\n--\n\n\
775 "number_class($self, x, /)\n--\n\n\
780 "plus($self, x, /)\n--\n\n\
786 "power($self, /, a, b, modulo=None)\n--\n\n\
804 "quantize($self, x, y, /)\n--\n\n\
809 "radix($self, /)\n--\n\n\
814 "remainder($self, x, y, /)\n--\n\n\
815 Return the remainder from integer division. The sign of the result,\n\
816 if non-zero, is the same as that of the original dividend.\n\
820 "remainder_near($self, x, y, /)\n--\n\n\
821 Return x - y * n, where n is the integer nearest the exact value of x / y\n\
822 (if the result is 0 then its sign will be the sign of x).\n\
826 "rotate($self, x, y, /)\n--\n\n\
831 "same_quantum($self, x, y, /)\n--\n\n\
836 "scaleb($self, x, y, /)\n--\n\n\
841 "shift($self, x, y, /)\n--\n\n\
846 "sqrt($self, x, /)\n--\n\n\
847 Square root of a non-negative number to context precision.\n\
851 "subtract($self, x, y, /)\n--\n\n\
856 "to_eng_string($self, x, /)\n--\n\n\
861 "to_integral($self, x, /)\n--\n\n\
866 "to_integral_exact($self, x, /)\n--\n\n\
871 "to_integral_value($self, x, /)\n--\n\n\
876 "to_sci_string($self, x, /)\n--\n\n\