spidermon
spidermon copied to clipboard
Number returned in scientific notation instead of standard decimal format
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