Closed gnufede closed 7 months ago
Current Behavior
math.log(0) raises ValueError: math domain error
math.log(0)
ValueError: math domain error
Expected behavior/code
No exceptions raised while trying to calculate the log of a number too close to zero.
Environment
Possible Solution
low = math.log(low) if low > 5e-324 else -750
Additional context/Screenshots
https://app.circleci.com/pipelines/github/DataDog/dd-trace-py/52341/workflows/776c836a-ea10-4af8-8154-236971fa72fc/jobs/3333537
Done in #103
Bug Report
Current Behavior
math.log(0)
raisesValueError: math domain error
Expected behavior/code
No exceptions raised while trying to calculate the log of a number too close to zero.
Environment
Possible Solution
Additional context/Screenshots
https://app.circleci.com/pipelines/github/DataDog/dd-trace-py/52341/workflows/776c836a-ea10-4af8-8154-236971fa72fc/jobs/3333537