Top 1,000 Features Creators Resources Extensions Blog Explorer CSV Download
GitHub icon

Integers

< >
Example from 5 languages: JavaScript, JSON, Lua, Julia, Uniform eXchange Format
80766866
Example from 2 languages: C, C#
int pldb = 80766866;
Example from 3 languages: Python, Ruby, Speedie
pldb = 80766866
Example from 2 languages: Java, AspectJ
// 0|[1-9][0-9_]*[lL]?
Example from 1 languages: Perl
# \d+(_\d+)*
Example from 1 languages: Go
i, j := 42, 2701
Example from 3 languages: SQL, Eiffel, Transact-SQL
-- [0-9]+
Example from 1 languages: Bash
PLDB=80766866
Example from 1 languages: Swift
// [0-9][0-9_]*
Example from 1 languages: Haskell
-- \d(_*\d)*
Example from 3 languages: Clojure, Hy, Fennel
; -?\d+
Example from 1 languages: Elixir
# \d(_?\d)*
Example from 2 languages: CoffeeScript, awk
# [0-9]+
Example from 1 languages: Erlang
% [+-]?(?:[2-9]|[12][0-9]|3[0-6])#[0-9a-zA-Z]+
Example from 1 languages: Prolog
% \d\d?\'[a-zA-Z0-9]+
Example from 1 languages: Ada
-- [0-9_]+
Example from 1 languages: TOML
# \d{4}-\d{2}-\d{2}(?:T| )\d{2}:\d{2}:\d{2}(?:Z|[-+]\d{2}:\d{2})
Example from 1 languages: D
// (0|[1-9][0-9_]*)([LUu]|Lu|LU|uL|UL)?
Example from 1 languages: Reason
// \d[\d_]*
Example from 1 languages: MySQL
-- [0-9]+(?=[^0-9a-z$_\u0080-\uffff])
Example from 1 languages: Elm
-- _?\d+
Example from 8 languages: Chapel, Zephir, Koka, QML, POV-Ray SDL, SuperCollider, Whiley, Alloy
// [0-9]+
Example from 1 languages: F#
// \d[\d_]*[uU]?[yslLnQRZINGmM]?
Example from 1 languages: VHDL
-- \d{1,2}#[0-9a-f_]+#?
Example from 2 languages: Idris, Agda
-- \d+
Example from 1 languages: Protocol Buffers
// \d+[LlUu]*
Example from 1 languages: Forth
\ (\#|%|&|\-|\+)?[0-9]+
Example from 1 languages: J
NB. _?\d+
Example from 1 languages: ABAP
* [0-9]+
Example from 1 languages: Verilog
// ([0-9]+)|(\'d)[0-9]+
Example from 2 languages: AutoHotkey, AutoIt
; \d+
Example from 1 languages: PostScript
% (\-|\+)?[0-9]+(?=[()<>\[\]{}/%\s])
Example from 2 languages: VBScript, Monkey
' [0-9]+
Example from 1 languages: Pig Latin
-- [0-9]+L?
Example from 1 languages: GNU Octave
% \d+
Example from 1 languages: C3
int x = 314159;
Example from 1 languages: SPARQL
# [+\-]?\d+
Example from 1 languages: Ceylon
// \d{1,3}(_\d{3})+[kMGTP]?
Example from 1 languages: Applescript
-- [-+]?\d+
Example from 1 languages: AMPL
# \d+([eE][+-]?\d+)?
Example from 1 languages: SystemVerilog
// ([1-9][_0-9]*)?\s*\'[sS]?[dD]\s*[xXzZ?0-9][_xXzZ?0-9]*
Example from 4 languages: Scilab, Modelica, Io, Linden Scripting Language
// \d+
Example from 1 languages: Golo
# -?\d[\d_]*
Example from 1 languages: Boo
# \d+
Example from 1 languages: Felix
// (0|[1-9][0-9_]*)([tTsSiIlLvV]|ll|LL|([iIuU])(8|16|32|64))?
Example from 1 languages: K
/ [0-9]+[ihtuv]
Example from 2 languages: Icon, Unicon
# \b([+-]?[0-9]+[KMGTPkmgtp]?)\b
Example from 1 languages: LiveScript
# [0-9]+(~[0-9a-z]+)?(?:[a-zA-Z_]+)?
Example from 1 languages: GDScript
# \d+j?
Example from 1 languages: Ragel
# [+-]?[0-9]+
Example from 2 languages: Croc, MiniD
// ([0-9][0-9_]*)(?![.eE])
Example from 1 languages: Cyber
count = 0
Example from 1 languages: Jule
12345 0b0001010101 0455 0xDFF90
Example from 1 languages: Wax
(let x int 42)
Example from 1 languages: 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
*

Languages with Integers include JavaScript, C, Python, Java, Perl, Ruby, JSON, Go, SQL, C#, Bash, Swift, Lua, Haskell, Clojure, Elixir, CoffeeScript, Julia, Erlang, Prolog, Mathematica, Ada, TOML, Zig, D, Reason, MySQL, Elm, GraphQL, WebAssembly, awk, Coq, OCaml, Chapel, F#, ClojureScript, VHDL, Idris, Protocol Buffers, Forth, J, Lean, sed, F*, IDL, ABAP, Verilog, Pony, ActionScript, Hy, Fennel, AutoHotkey, Puppet, PostScript, Cython, XQuery, Eiffel, Zephir, EDN, VBScript, Pig Latin, GNU Octave, Koka, Opa, C3, QML, Thrift, SPARQL, janet, Pandas, Futhark, Agda, POV-Ray SDL, Ceylon, Applescript, AMPL, QBasic, SystemVerilog, Turtle, NumPy, Cryptol, Scilab, AutoIt, Golo, YANG, HLSL, GLSL, Transact-SQL, Boo, Felix, AspectJ, K, SuperCollider, Meson, Nit, chaiscript, Gosu, Ioke, Maxima, Modelica, Shen, Fancy, Io, Xtend, SourcePawn, BlitzMax, PL/pgSQL, Whiley, Icon, clay, LiveScript, Nix, Stan, Monkey, OpenEdge ABL, GDScript, BlitzBasic, Ragel, Earl Grey, Alloy, Croc, Kal, JSLT, Linden Scripting Language, Cyber, Jule, HOPE, FloScript, Redcode, Unicon, monte, MiniD, Uniform eXchange Format, JS++, Speedie, Flatline, Easytrieve, parasail, Aardvark, Pawn, Wax, Ion, Urbiscript, hecl, nimrod, AmbientTalk, PromQL, boa, Boogie, SARL, Spice, RQL, BALGOL, CBOR data definition language, bag-format, Procfile, RAISE Specification Language, Friendly Enough Expression Language, juttle

*

Languages without Integers include progsbase

*

View all concepts with or missing a hasIntegers measurement

*

Read more about Integers on the web: 1.

View source

- Build the next great programming language About Acknowledgements Part of the World Wide Scroll