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

Floats

< >
Example from 1 languages: JavaScript
// (\.[0-9]+|[0-9]+\.[0-9]*|[0-9]+)([eE][-+]?[0-9]+)? 80766866.0
Example from 1 languages: Python
# (\d(?:_?\d)*\.(?:\d(?:_?\d)*)?|(?:\d(?:_?\d)*)?\.\d(?:_?\d)*)([eE][+-]?\d(?:_?\d)*)?
Example from 2 languages: Java, AspectJ
// ([0-9][0-9_]*\.([0-9][0-9_]*)?|\.[0-9][0-9_]*)([eE][+\-]?[0-9][0-9_]*)?[fFdD]?|[0-9][eE][+\-]?[0-9][0-9_]*[fFdD]?|[0-9]([eE][+\-]?[0-9][0-9_]*)?[fFdD]|0[xX]([0-9a-fA-F][0-9a-fA-F_]*\.?|([0-9a-fA-F][0-9a-fA-F_]*)?\.[0-9a-fA-F][0-9a-fA-F_]*)[pP][+\-]?[0-9][0-9_]*[fFdD]?
Example from 1 languages: Perl
# (?i)(\d*(_\d*)*\.\d+(_\d*)*|\d+(_\d*)*\.\d+(_\d*)*)(e[+-]?\d+)?
Example from 1 languages: JSON
2.3
Example from 1 languages: Go
// \d+(\.\d+[eE][+\-]?\d+|\.\d*|[eE][+\-]?\d+)
Example from 1 languages: Swift
// [0-9][0-9_]*(\.[0-9_]+[eE][+\-]?[0-9_]+|\.[0-9_]*|[eE][+\-]?[0-9_]+)
Example from 1 languages: Lua
-- [0-9]*\.[0-9]+([eE][+-]?[0-9]+)? -- (decimal float) -- 0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+([pP][+-]?[0-9]+)? -- (hex float)
Example from 1 languages: Haskell
-- 0[xX]_*[\da-fA-F](_*[\da-fA-F])*_*[pP][+-]?\d(_*\d)*
Example from 3 languages: Clojure, Hy, Fennel
; -?\d+\.\d+
Example from 1 languages: Elixir
# \d(_?\d)*\.\d(_?\d)*([eE][-+]?\d(_?\d)*)?
Example from 2 languages: CoffeeScript, awk
# [0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?
Example from 1 languages: Julia
# (\d+((_\d+)+)?\.(?!\.)(\d+((_\d+)+)?)?|\.\d+((_\d+)+)?)([eEf][+-]?[0-9]+)?
Example from 1 languages: Erlang
% [+-]?\d+.\d+
Example from 1 languages: Prolog
% (\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
Example from 1 languages: Ada
-- [0-9_]+\.[0-9_]*
Example from 2 languages: TOML, GDScript
# (\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?
Example from 1 languages: D
// 0[xX]([0-9a-fA-F_]*\.[0-9a-fA-F_]+|[0-9a-fA-F_]+)[pP][+\-]?[0-9_]+[fFL]?[i]?
Example from 1 languages: Reason
// -?\d[\d_]*(.[\d_]*)?([eE][+\-]?\d[\d_]*)
Example from 2 languages: MySQL, Transact-SQL
-- [0-9]+\.[0-9]*(e[+-]?[0-9]+)?
Example from 1 languages: Elm
-- _?\d+\.(?=\d+)
Example from 1 languages: Chapel
// (\d*\.\d+)([eE][+-]?[0-9]+)?i?
Example from 1 languages: F#
// -?\d[\d_]*(.[\d_]*)?([eE][+\-]?\d[\d_]*)[fFmM]?
Example from 1 languages: VHDL
-- (\d+\.\d*|\.\d+|\d+)E[+-]?\d+
Example from 2 languages: Idris, Agda
-- \d+[eE][+-]?\d+
Example from 1 languages: Protocol Buffers
// (\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[LlUu]*
Example from 1 languages: J
NB. _?\d+\.(?=\d+)
Example from 2 languages: Verilog, SystemVerilog
// (\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[lL]?
Example from 2 languages: AutoHotkey, AutoIt
; (\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
Example from 1 languages: PostScript
% (\-|\+)?([0-9]+\.?|[0-9]*\.[0-9]+|[0-9]+\.[0-9]*)((e|E)[0-9]+)?(?=[()<>\[\]{}/%\s])
Example from 1 languages: Eiffel
-- ([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)
Example from 3 languages: Zephir, QML, SuperCollider
// [0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?
Example from 1 languages: VBScript
' [0-9]+\.[0-9]*(e[+-]?[0-9]+)?
Example from 1 languages: Pig Latin
-- [0-9]*\.[0-9]+(e[0-9]+)?[fd]?
Example from 1 languages: GNU Octave
% (\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?
Example from 1 languages: Koka
// [0-9]+\.[0-9]+([eE][\-+]?[0-9]+)?
Example from 1 languages: SPARQL
# [+\-]?(\d+\.\d*[eE][+-]?\d+|\.?\d+[eE][+-]?\d+)
Example from 1 languages: POV-Ray SDL
// [0-9]*\.[0-9]+
Example from 1 languages: Ceylon
// \d{1,3}(_\d{3})+\.\d{1,3}(_\d{3})+[kMGTPmunpf]?
Example from 1 languages: Applescript
-- [-+]?(\d+\.\d*|\d*\.\d+)(E[-+][0-9]+)?
Example from 1 languages: AMPL
# (\d+\.(?!\.)\d*|\.(?!.)\d+)([eE][+-]?\d+)?
Example from 1 languages: Scilab
// (\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?
Example from 1 languages: Golo
# -?[\d_]*\.[\d_]*([eE][+-]?\d[\d_]*)?F?
Example from 1 languages: Boo
# (\d+\.\d*|\d*\.\d+)([fF][+-]?[0-9]+)?
Example from 1 languages: Felix
// 0[xX]([0-9a-fA-F_]*\.[0-9a-fA-F_]+|[0-9a-fA-F_]+)[pP][+\-]?[0-9_]+[lLfFdD]?
Example from 1 languages: K
/ ([0-9]*[.]?[0-9]+|[0-9]+[.]?[0-9]*)[eE][+-]?[0-9]+[ef]?
Example from 1 languages: Modelica
// \d+(\.?\d*[eE][-+]?\d+|\.\d*)
Example from 1 languages: Io
// (\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
Example from 1 languages: Whiley
// [0-9]+\.[0-9]+
Example from 2 languages: Icon, Unicon
# [+-]?[0-9]*\.([0-9]*)([Ee][+-]?[0-9]*)?
Example from 1 languages: LiveScript
# [0-9]+\.[0-9]+([eE][0-9]+)?[fd]?(?:[a-zA-Z_]+)?
Example from 1 languages: Monkey
' [0-9]+\.[0-9]*(?!\.)
Example from 2 languages: Croc, MiniD
// ([0-9][0-9_]*)(?=[.eE])(\.[0-9][0-9_]*)?([eE][+\-]?[0-9_]+)?
Example from 1 languages: Linden Scripting Language
// (\d+\.\d*|\.\d+|\d+)[eE][+-]?\d*
Example from 1 languages: Jule
3.14 32.60 032.60 3. 0.3 1E2 .12345E+6 1.e+0 0x1p-2 0x2.p10 0x1.Fp+0 0X.8p-0 0x1fffp-16 0x15e-2
Example from 1 languages: Speedie
|| num = 0.0
Example from 1 languages: Ion
// http://amzn.github.io/ion-docs/docs/spec.html -0.12e4 // Type is float
*

Languages with Floats include JavaScript, Python, Java, Perl, JSON, Go, 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, J, F*, IDL, Verilog, Pony, ActionScript, Hy, Fennel, AutoHotkey, Puppet, PostScript, Cython, XQuery, Eiffel, Zephir, EDN, VBScript, Pig Latin, GNU Octave, Koka, Opa, QML, Thrift, SPARQL, janet, Pandas, Futhark, Agda, POV-Ray SDL, Ceylon, Applescript, AMPL, QBasic, SystemVerilog, progsbase, Turtle, NumPy, Cryptol, Scilab, AutoIt, Golo, YANG, HLSL, GLSL, Transact-SQL, Boo, Felix, AspectJ, K, SuperCollider, ooc, Nit, chaiscript, Gosu, Ioke, Maxima, Modelica, Shen, Fancy, Io, Xtend, LilyPond, SourcePawn, BlitzMax, PL/pgSQL, Whiley, Icon, LiveScript, Stan, Monkey, OpenEdge ABL, GDScript, BlitzBasic, Earl Grey, Croc, Kal, JSLT, Linden Scripting Language, Jule, FloScript, Unicon, monte, MiniD, JS++, Speedie, Flatline, Easytrieve, parasail, Aardvark, Pawn, Wax, Ion, Urbiscript, nimrod, AmbientTalk, PromQL, SARL, BALGOL, CBOR data definition language, bag-format, RAISE Specification Language, SquidConf, juttle

*

View all concepts with or missing a hasFloats measurement

*

Read more about Floats on the web: 1. 2.

View source

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