Skip to main content

int

Laurence MorganAbout 1 min

int

Whole number (primitive)

Description

An integer is a whole number (eg 1, 2, 3, 4) rather than one with a decimal point (such as 1.1).

Integers in Murex are sized based on the bit (or word) size of the target CPU.

A 386, ARMv6 or other 32bit build of Murex would see the range of from -2147483648 (negative) through 2147483647 (positive).

AMD64 or other 64bit built of Murex would see the range from -9223372036854775808 (negative) through 9223372036854775807 (positive).

Unless you specifically know you only want whole numbers, it is recommended that you use the default numeric data-type: num.

Supported Hooks

  • Marshal() Supported
  • Unmarshal() Supported

See Also

  • [[ Element ]]: Outputs an element from a nested structure
  • cast: Alters the data type of the previous function without altering it's output
  • format: Reformat one data-type into another data-type
  • num (number): Floating point number (primitive)
  • open: Open a file with a preferred handler
  • runtime: Returns runtime information on the internal state of Murex
  • str (string): string (primitive)
  • index: Outputs an element from an array, map or table

Read more about type hooks


This document was generated from builtins/types/numeric/numeric_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan,Laurence