Jump to conversation
Unresolved conversations (1)
@overmighty overmighty Jun 4, 2024
I didn't know what value to use here, so I just copied the one for `float`.
libc/utils/MPFRWrapper/MPFRUtils.cpp
lntue
Resolved conversations (2)
@lntue lntue Jun 5, 2024
Or you can just do: ``` thisAsT = FPBits<T>(thisAsT).set_sign(Sign::POS).get_val(); ```
Outdated
libc/utils/MPFRWrapper/MPFRUtils.cpp
overmighty
@lntue lntue Jun 5, 2024
This can lead to double-rounding errors. Use `mpfr_get_d` for now to reduce the chance of double-rounding errors, and add a TODO to either show that double-rounding errors won't happen or find a better way to avoid it.
Outdated
libc/utils/MPFRWrapper/MPFRUtils.cpp