aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter0_basics/lesson05_ints/en.html
blob: 252496ae14bfe629a24df03b97a5be5e98462215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<p>Gleam's <code>Int</code> type represents whole numbers.</p>
<p>
  There are arithmetic and comparison operators for ints, as well as the
  equality operator which works on all types.
</p>
<p>
  When running on the Erlang virtual machine ints have no maximum and minimum
  size. When running on JavaScript runtimes ints are represented using
  JavaScript's 64 bit floating point numbers,
</p>
<p>
  The
  <a href="https://hexdocs.pm/gleam_stdlib/gleam/int.html"
    ><code>gleam/int</code></a
  >
  standard library module contains functions for working with ints.
</p>