# Determinant of an integer matrix is float

**URL:** https://discourse.julialang.org/t/determinant-of-an-integer-matrix-is-float/111107
**Category:** General Usage
**Tags:** linearalgebra
**Created:** [March 3, 2024, 10:26pm UTC](https://discourse.julialang.org/t/determinant-of-an-integer-matrix-is-float/111107 "2024-03-03T22:26:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)
#### Post date: [March 3, 2024, 10:52pm UTC](https://discourse.julialang.org/t/determinant-of-an-integer-matrix-is-float/111107/2 "2024-03-03T22:52:49Z")

</div>

> [@Possible bug in determinant calculation](https://discourse.julialang.org/t/possible-bug-in-determinant-calculation/20323/8):
>
> You can do this without overflowing by using Rational{BigInt}, although this can get expensive quickly. I don’t think it should use BigInt unless you explicitly request this. There are specialized algorithms for integer determinants (e.g. [Dodgeson condensation](https://en.wikipedia.org/wiki/Dodgson_condensation)), but in general doing computational number theory efficiently is probably outside the scope of the standard LinearAlgebra library and is more something for packages like Nemo.jl.

---

_[View the full topic](https://discourse.julialang.org/t/determinant-of-an-integer-matrix-is-float/111107)._
