Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

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 2 languages: Go, Wa-lang
// \d+(\.\d+[eE][+\-]?\d+|\.\d*|[eE][+\-]?\d+)
Example from 1 languages: JSON
2.3
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, Fennel, Hy
; -?\d+\.\d+
Example from 2 languages: CoffeeScript, awk
# [0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?
Example from 1 languages: Elixir
# \d(_?\d)*\.\d(_?\d)*([eE][-+]?\d(_?\d)*)?
Example from 1 languages: Erlang
% [+-]?\d+.\d+
Example from 1 languages: Prolog
% (\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
Example from 1 languages: Julia
# (\d+((_\d+)+)?\.(?!\.)(\d+((_\d+)+)?)?|\.\d+((_\d+)+)?)([eEf][+-]?[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 2 languages: MySQL, Transact-SQL
-- [0-9]+\.[0-9]*(e[+-]?[0-9]+)?
Example from 1 languages: Reason
// -?\d[\d_]*(.[\d_]*)?([eE][+\-]?\d[\d_]*)
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: 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: Gleam
let pi = 3.14159
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 1 languages: Koka
// [0-9]+\.[0-9]+([eE][\-+]?[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: SPARQL
# [+\-]?(\d+\.\d*[eE][+-]?\d+|\.?\d+[eE][+-]?\d+)
Example from 1 languages: AMPL
# (\d+\.(?!\.)\d*|\.(?!.)\d+)([eE][+-]?\d+)?
Example from 1 languages: MoonBit
3.14
Example from 1 languages: POV-Ray SDL
// [0-9]*\.[0-9]+
Example from 1 languages: Applescript
-- [-+]?(\d+\.\d*|\d*\.\d+)(E[-+][0-9]+)?
Example from 1 languages: Ceylon
// \d{1,3}(_\d{3})+\.\d{1,3}(_\d{3})+[kMGTPmunpf]?
Example from 1 languages: Scilab
// (\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?
Example from 1 languages: K
/ ([0-9]*[.]?[0-9]+|[0-9]+[.]?[0-9]*)[eE][+-]?[0-9]+[ef]?
Example from 1 languages: Golo
# -?[\d_]*\.[\d_]*([eE][+-]?\d[\d_]*)?F?
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: Boo
# (\d+\.\d*|\d*\.\d+)([fF][+-]?[0-9]+)?
Example from 1 languages: Modelica
// \d+(\.?\d*[eE][-+]?\d+|\.\d*)
Example from 1 languages: LiveScript
# [0-9]+\.[0-9]+([eE][0-9]+)?[fd]?(?:[a-zA-Z_]+)?
Example from 1 languages: Io
// (\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
Example from 2 languages: Icon, Unicon
# [+-]?[0-9]*\.([0-9]*)([Ee][+-]?[0-9]*)?
Example from 1 languages: Whiley
// [0-9]+\.[0-9]+
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: 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: Linden Scripting Language
// (\d+\.\d*|\.\d+|\d+)[eE][+-]?\d*
Example from 1 languages: SAKO
A = 2.3
Example from 1 languages: Speedie
|| num = 0.0
Example from 1 languages: Crap
// The same as c
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, Go, JSON, Swift, Lua, Haskell, Clojure, CoffeeScript, Elixir, Erlang, Prolog, Julia, Mathematica, WebAssembly, Zig, Ada, TOML, MySQL, Reason, D, Elm, GraphQL, Chapel, awk, F#, Coq, OCaml, Gleam, ClojureScript, VHDL, Idris, Protocol Buffers, J, F*, IDL, Fennel, Pandas, ActionScript, Verilog, Pony, Hy, Puppet, AutoHotkey, PostScript, Cython, XQuery, Eiffel, EDN, Wa-lang, Koka, Zephir, VBScript, Janet, Pig Latin, QML, GNU Octave, Opa, Thrift, Futhark, Agda, SPARQL, AMPL, MoonBit, POV-Ray SDL, Applescript, Ceylon, SystemVerilog, QBasic, NumPy, progsbase, Cryptol, HLSL, Scilab, GLSL, YANG, Turtle, K, AutoIt, Golo, Transact-SQL, Felix, Boo, chaiscript, AspectJ, SuperCollider, ooc, Wax, Nit, Gosu, Ioke, Modelica, Maxima, Shen, LiveScript, Fancy, Xtend, Io, SourcePawn, PL/pgSQL, Icon, BlitzMax, Whiley, LilyPond, Stan, GDScript, Monkey, OpenEdge ABL, Earl Grey, BlitzBasic, Croc, JSLT, Jule, Kal, Linden Scripting Language, FloScript, Unicon, monte, MiniD, SAKO, Aardvark, JS++, Speedie, Flatline, parasail, Easytrieve, Crap, Pawn, Urbiscript, Ion, nimrod, AmbientTalk, PromQL, SARL, BALGOL, bag-format, CBOR data definition language, RAISE Specification Language, SquidConf, juttle

*

View all concepts with or missing a hasFloats measurement

*

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

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements