aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter0_basics/lesson05_ints/en.html
blob: 41793d505f524c0cb15098382e1d7339daca0428 (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" target="_blank">
    <code>gleam/int</code>
  </a>
  standard library module contains functions for working with ints.
</p>