Skip to content

Number returned in scientific notation instead of standard decimal format #460

@adnan-awan

Description

@adnan-awan

When performing a division operation, the result is returned in scientific notation, even though it could be represented in standard decimal format for better readability. For example, the result of 1 / 11091 returns 9.01631953836444e-05, while the expected result is something like 0.0000901 in decimal format.

Steps to Reproduce:

Perform the division operation: 1 / 11091.
Observe the result is in scientific notation.
Expected Behavior: The result should be displayed in a readable decimal format (e.g., 0.0000901).

Actual Behavior: The result is returned in scientific notation: 9.01631953836444e-05.

Additional Information: It would be helpful if there was an option to toggle between scientific notation and standard decimal format for small numbers.

https://github.com/scrapinghub/spidermon/blob/master/spidermon/utils/field_coverage.py#L41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions