# Detecting low precision contamination of DoubleFloats.jl

**URL:** <https://discourse.julialang.org/t/detecting-low-precision-contamination-of-doublefloats-jl/77408>\
**Category:** Numerics\
**Tags:** question\
**Created:** [March 4, 2022, 3:34pm UTC](https://discourse.julialang.org/t/detecting-low-precision-contamination-of-doublefloats-jl/77408 "2022-03-04T15:34:39Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [May 24, 2022, 11:58am UTC](https://discourse.julialang.org/t/detecting-low-precision-contamination-of-doublefloats-jl/77408/8 "2022-05-24T11:58:38Z")

</div>

Would this help?

> [@ANN: ChangePrecision.jl](https://discourse.julialang.org/t/ann-changeprecision-jl/6721):
>
> [ChangePrecision.jl](https://github.com/stevengj/ChangePrecision.jl), which has been mentioned recently on a [couple](https://discourse.julialang.org/t/change-default-precision/6520/47) of [other](https://discourse.julialang.org/t/performing-arithmetic-operations-in-quadruple-precision/4265/14) threads, is now a registered package. This package allows you to effectively change the “default” precision in a large body of Julia code, simply by doing e.g. @changeprecision Float32 include("foo.jl") or, for example: using ChangePrecision @changeprecision BigFloat begin x = pi/2 y = 2.1 \* x \* rand(3,3) \ linspace(0,1,3) end and all floating-point literals, as well as many functions like rand() or expressions…

> **[GitHub - JuliaMath/ChangePrecision.jl: macro to change the default...](https://github.com/JuliaMath/ChangePrecision.jl)**
>
> macro to change the default floating-point precision in Julia code - GitHub - JuliaMath/ChangePrecision.jl: macro to change the default floating-point precision in Julia code

---

_[View the full topic](https://discourse.julialang.org/t/detecting-low-precision-contamination-of-doublefloats-jl/77408)._
