PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Integers

< >
80766866
Example from Java, AspectJ, Pizza, Deesel:
// 0|[1-9][0-9_]*[lL]?
int pldb = 80766866;
Example from Python, Ruby:
pldb = 80766866
Example from SQL, Eiffel, Transact-SQL:
-- [0-9]+
Example from Perl:
# \d+(_\d+)*
Example from MySQL:
-- [0-9]+(?=[^0-9a-z$_\u0080-\uffff])
Example from Go:
i, j := 42, 2701
Example from Swift:
// [0-9][0-9_]*
Example from Ada:
-- [0-9_]+
Example from Haskell:
-- \d(_*\d)*
Example from Prolog, CLPR, GAEA, Progol:
% \d\d?\'[a-zA-Z0-9]+
Example from Bash:
PLDB=80766866
Example from Clojure, Hy, Fennel:
; -?\d+
Example from Elixir:
# \d(_?\d)*
Example from Erlang:
% [+-]?(?:[2-9]|[12][0-9]|3[0-6])#[0-9a-zA-Z]+
Example from Verilog:
// ([0-9]+)|(\'d)[0-9]+
Example from Reason:
// \d[\d_]*
Example from awk, CoffeeScript, bawk:
# [0-9]+
Example from F#:
// \d[\d_]*[uU]?[yslLnQRZINGmM]?
Example from Elm:
-- _?\d+
Example from D:
// (0|[1-9][0-9_]*)([LUu]|Lu|LU|uL|UL)?
Example from VHDL:
-- \d{1,2}#[0-9a-f_]+#?
Example from PostScript:
% (\-|\+)?[0-9]+(?=[()<>\[\]{}/%\s])
// [0-9]+
Example from Forth:
\ (\#|%|&|\-|\+)?[0-9]+
Example from VBScript, Monkey:
' [0-9]+
Example from Applescript:
-- [-+]?\d+
Example from Idris, Agda:
-- \d+
Example from Protocol Buffers:
// \d+[LlUu]*
Example from ABAP:
* [0-9]+
Example from AMPL:
# \d+([eE][+-]?\d+)?
Example from AutoIt, AutoHotkey:
; \d+
Example from GNU Octave:
% \d+
Example from TOML:
# \d{4}-\d{2}-\d{2}(?:T| )\d{2}:\d{2}:\d{2}(?:Z|[-+]\d{2}:\d{2})
Example from Icon, Unicon:
# \b([+-]?[0-9]+[KMGTPkmgtp]?)\b
Example from J:
NB. _?\d+
// \d+
Example from Boo:
# \d+
Example from Ceylon:
// \d{1,3}(_\d{3})+[kMGTP]?
Example from SPARQL:
# [+\-]?\d+
Example from SystemVerilog:
// ([1-9][_0-9]*)?\s*\'[sS]?[dD]\s*[xXzZ?0-9][_xXzZ?0-9]*
Example from MiniD, Croc:
// ([0-9][0-9_]*)(?![.eE])
Example from C3:
int x = 314159;
Example from LiveScript:
# [0-9]+(~[0-9a-z]+)?(?:[a-zA-Z_]+)?
Example from Pig Latin:
-- [0-9]+L?
Example from Golo:
# -?\d[\d_]*
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 K:
/ [0-9]+[ihtuv]
Example from Ragel:
# [+-]?[0-9]+
Example from Felix:
// (0|[1-9][0-9_]*)([tTsSiIlLvV]|ll|LL|([iIuU])(8|16|32|64))?
Example from GDScript:
# \d+j?
Example from Cyber:
count = 0

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

Languages without Integers include progsbase

Read more about Integers on the web: 1.

HTML of this page generated by Features.ts

hasInheritance.html 路 hasIntegers.html 路 hasInterfaces.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com