github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/types/int.md (about)

     1  # `int`
     2  
     3  > Whole number (primitive)
     4  
     5  ## Description
     6  
     7  An integer is a whole number (eg 1, 2, 3, 4) rather than one with a decimal
     8  point (such as 1.1).
     9  
    10  Integers in Murex are sized based on the bit (or word) size of the target
    11  CPU.
    12  
    13  A 386, ARMv6 or other 32bit build of Murex would see the range of from
    14  `-2147483648` (negative) through `2147483647` (positive).
    15  
    16  AMD64 or other 64bit built of Murex would see the range from
    17  `-9223372036854775808` (negative) through `9223372036854775807` (positive).
    18  
    19  > Unless you specifically know you only want whole numbers, it is recommended
    20  > that you use the default numeric data-type: `num`.
    21  
    22  ## Supported Hooks
    23  
    24  * `Marshal()`
    25      Supported
    26  * `Unmarshal()`
    27      Supported
    28  
    29  ## See Also
    30  
    31  * [`[[ Element ]]`](../parser/element.md):
    32    Outputs an element from a nested structure
    33  * [`cast`](../commands/cast.md):
    34    Alters the data type of the previous function without altering it's output
    35  * [`format`](../commands/format.md):
    36    Reformat one data-type into another data-type
    37  * [`num` (number)](../types/num.md):
    38    Floating point number (primitive)
    39  * [`open`](../commands/open.md):
    40    Open a file with a preferred handler
    41  * [`runtime`](../commands/runtime.md):
    42    Returns runtime information on the internal state of Murex
    43  * [`str` (string)](../types/str.md):
    44    string (primitive)
    45  * [index](../parser/item-index.md):
    46    Outputs an element from an array, map or table
    47  
    48  ### Read more about type hooks
    49  
    50  - [`ReadIndex()` (type)](../apis/ReadIndex.md): Data type handler for the index, `[`, builtin
    51  - [`ReadNotIndex()` (type)](../apis/ReadNotIndex.md): Data type handler for the bang-prefixed index, `![`, builtin
    52  - [`ReadArray()` (type)](../apis/ReadArray.md): Read from a data type one array element at a time
    53  - [`WriteArray()` (type)](../apis/WriteArray.md): Write a data type, one array element at a time
    54  - [`ReadMap()` (type)](../apis/ReadMap.md): Treat data type as a key/value structure and read its contents
    55  - [`Marshal()` (type)](../apis/Marshal.md): Converts structured memory into a structured file format (eg for stdio)
    56  - [`Unmarshal()` (type)](../apis/Unmarshal.md): Converts a structured file format into structured memory
    57  
    58  <hr/>
    59  
    60  This document was generated from [builtins/types/numeric/numeric_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/types/numeric/numeric_doc.yaml).