Lines Matching defs:mantissa
10 # _m : absolute value of mantissa ($LIB thingy)
353 # _m: mantissa
782 # Split bit string into sign, exponent, and mantissa/significand.
1521 # The next step is to compare the exponents, but since each mantissa is an
1558 # mantissa. Life is a lot easier if we first make both exponents
1618 # mantissa with zeros (shift left) until it has the same length as the
1619 # longer mantissa.
1675 # so make mantissa equal-length by padding with zero (shift left)
1774 # e.g., 12e+3 becomes 12000e+0 and we can easily increment the mantissa.
1817 # e.g., 12e+3 becomes 12000e+0 and we can easily increment the mantissa.
2385 # $ym is now mantissa of $y based on exponent 0
2950 # We start off by initializing the exponent to zero and the mantissa to
2951 # the input value. Then we increase the mantissa and decrease the
2952 # exponent, or vice versa, until the mantissa is in the desired range
4329 # 2: if we should keep more digits than the mantissa has, do nothing
4340 $m = $m->bround($scale, $mode); # round mantissa
4341 $x->{_m} = $m->{value}; # get our mantissa back
4399 my $len = $LIB->_len($x->{_m}); # length of mantissa
4435 # adjust round-point to be inside mantissa
4478 $x->{_m} = $m->{value}; # get our mantissa back
4659 sub mantissa {
4660 # return a copy of the mantissa
4698 # return a copy of both the exponent and the mantissa
4717 # Parts used for scientific notation with significand/mantissa and exponent as
4718 # integers. E.g., "12345.6789" is returned as "123456789" (mantissa) and "-4"
4729 my $mant = $class -> bnan(); # mantissa
4738 my $mant = $class -> binf($x->{sign}); # mantissa
4757 # Parts used for normalized notation with significand/mantissa as either 0 or a
4778 if ($expo10adj > 0) { # if mantissa is not an integer
4790 # Parts used for engineering notation with significand/mantissa as either 0 or a
5086 # Scientific notation with significand/mantissa and exponent as integers, e.g.,
5135 # Get the mantissa and the length of the mantissa.
5142 # Not decimal point when the mantissa has length one, i.e., return the
5150 # length of the mantissa minus one (because the decimal point is after
5186 # Get the mantissa, the length of the mantissa, and adjust the exponent by
5187 # the length of the mantissa minus 1 (because the dot is after one digit).
5421 # Get numerical sign, exponent, and mantissa/significand for bit
5443 # Now we need to compute the mantissa and exponent in base $b.
5450 # mantissa to the input value. Then we increase the mantissa and
5451 # decrease the exponent, or vice versa, until the mantissa is in
5529 # Scale up the mantissa (significand), and round to integer.
5535 # If the mantissa overflowed, encode as the smallest normal
5549 # Remove implicit leading bit, scale up the mantissa
5556 # If the mantissa overflowed, encode as the next larger value.
6385 $x->mantissa(); # return (signed) mantissa as BigInt
6387 $x->parts(); # return (mantissa,exponent) as BigInt
6388 $x->sparts(); # mantissa and exponent (as integers)
6389 $x->nparts(); # mantissa and exponent (normalised)
6390 $x->eparts(); # mantissa and exponent (engineering notation)
6472 separated from the significand (mantissa) by the letter "p" or "P", not "e" or