Integers is an actively used design pattern. A data type that represents some range of mathematical integers.

?Years Old

Languages with Integers include bag-format, c, edn, feel, graphql, hope, ion, json

Example from c:

int c = 10;

Example from ion:

// http://amzn.github.io/ion-docs/docs/spec.html
null.int   // A null int value
0          // Zero.  Surprise!
-0         //   ...the same value with a minus sign
123        // A normal int
-123       // Another negative int
0xBeef     // An int denoted in hexadecimal
0b0101     // An int denoted in binary
1_2_3      // An int with underscores
0xFA_CE    // An int denoted in hexadecimal with underscores
0b10_10_10 // An int denoted in binary with underscores

Example from json:

2

Last updated August 9th, 2020

Edit Integers on GitHub