jdh8 / metallic

C runtime library (libc) for WebAssembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is 10 ** -342 minimum possible value for double range in scientific_ method?

MaxGraey opened this issue · comments

It seems this should be -324 here

It is because maximum significand is 264 − 1, so we need -342 to go small enough. significand is interpreted as a plain integer here.

Smallest representable positive double ≈ 5e-324
(264 − 1) 10-342 ≈ 2e-323

Got it! thanks