# Moving BigFloat to stdlib?

**URL:** <https://discourse.julialang.org/t/moving-bigfloat-to-stdlib/8545>\
**Category:** Internals & Design\
**Created:** [January 23, 2018, 3:43pm UTC](https://discourse.julialang.org/t/moving-bigfloat-to-stdlib/8545 "2018-01-23T15:43:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nalimilan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nalimilan/32/147_2.png) [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Post date:** [January 23, 2018, 5:20pm UTC](https://discourse.julialang.org/t/moving-bigfloat-to-stdlib/8545/5 "2018-01-23T17:20:31Z")

</div>

Unfortunately, we need big ints and big floats in the array hashing code to compute the difference between two subsequent elements in an array without any overflow or precision loss. That’s not great, but so far we haven’t found any other solution (see [this PR](https://github.com/JuliaLang/julia/pull/16401/)). This system could be easily disabled via a build option, and hashing of ranges would then be O(N) instead of O(1), but by default I’m afraid we’ll have to keep the types in Base. Though we can avoid exporting them from Base and use a stdlib module for that instead.

---

_[View the full topic](https://discourse.julialang.org/t/moving-bigfloat-to-stdlib/8545)._
