finfo(dtype) Machine limits for floating point types. Attributes ---------- bits : int The number of bits occupied by the type. dtype : dtype Returns the dtype for which `finfo` returns information. For complex input, the returned dtype is the assoc
| 377 | |
| 378 | @set_module('numpy') |
| 379 | class finfo: |
| 380 | """ |
| 381 | finfo(dtype) |
| 382 | |
| 383 | Machine limits for floating point types. |
| 384 | |
| 385 | Attributes |
| 386 | ---------- |
| 387 | bits : int |
| 388 | The number of bits occupied by the type. |
| 389 | dtype : dtype |
| 390 | Returns the dtype for which `finfo` returns information. For complex |
| 391 | input, the returned dtype is the associated ``float*`` dtype for its |
| 392 | real and complex components. |
| 393 | eps : float |
| 394 | The difference between 1.0 and the next smallest representable float |
| 395 | larger than 1.0. For example, for 64-bit binary floats in the IEEE-754 |
| 396 | standard, ``eps = 2**-52``, approximately 2.22e-16. |
| 397 | epsneg : float |
| 398 | The difference between 1.0 and the next smallest representable float |
| 399 | less than 1.0. For example, for 64-bit binary floats in the IEEE-754 |
| 400 | standard, ``epsneg = 2**-53``, approximately 1.11e-16. |
| 401 | iexp : int |
| 402 | The number of bits in the exponent portion of the floating point |
| 403 | representation. |
| 404 | machep : int |
| 405 | The exponent that yields `eps`. |
| 406 | max : floating point number of the appropriate type |
| 407 | The largest representable number. |
| 408 | maxexp : int |
| 409 | The smallest positive power of the base (2) that causes overflow. |
| 410 | min : floating point number of the appropriate type |
| 411 | The smallest representable number, typically ``-max``. |
| 412 | minexp : int |
| 413 | The most negative power of the base (2) consistent with there |
| 414 | being no leading 0's in the mantissa. |
| 415 | negep : int |
| 416 | The exponent that yields `epsneg`. |
| 417 | nexp : int |
| 418 | The number of bits in the exponent including its sign and bias. |
| 419 | nmant : int |
| 420 | The number of bits in the mantissa. |
| 421 | precision : int |
| 422 | The approximate number of decimal digits to which this kind of |
| 423 | float is precise. |
| 424 | resolution : floating point number of the appropriate type |
| 425 | The approximate decimal resolution of this type, i.e., |
| 426 | ``10**-precision``. |
| 427 | tiny : float |
| 428 | An alias for `smallest_normal`, kept for backwards compatibility. |
| 429 | smallest_normal : float |
| 430 | The smallest positive floating point number with 1 as leading bit in |
| 431 | the mantissa following IEEE-754 (see Notes). |
| 432 | smallest_subnormal : float |
| 433 | The smallest positive floating point number with 0 as leading bit in |
| 434 | the mantissa following IEEE-754. |
| 435 | |
| 436 | Parameters |
no outgoing calls