Answers.Body: <p>3.14e2<br />
  3.14e-67f<br />
  .14E4f<br />
  0x10.1p0<br />
  0x1p5<br />
  0x1e5<br />
  3.14'15'92<br />
  3.14e-4932l<br />
  3.14e38f<br />
  3.14e38<br />
  3.14e38l<br />
  3.14_15F<br />
  10_000_000.0<br />
  +1.23E+1<br />
  3.1415926D0<br />
  5.d0<br />
  1.<br />
  0xfadebeep-8</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-05T11:26:06.583Z
Answers.Text: `0xfadebeep-8` is not a decimal.
Answers.UserDisplayName: Jörg W Mittag
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-26T03:00:36.990Z
Answers.LastActivityDate: 2023-04-26T06:23:39.317Z
Answers.LastEditDate: 2023-04-26T06:23:39.317Z
Answers.UserDisplayName: Samuel Muldoon
Body: <p>What is an exhaustive as possible list of examples of floating-point literals as they are written in source code?</p>
  <p>That is, the float is not parsed from a text file with arbitrary floats.</p>
  <p>The float literal must is written in correct syntax for a programming language such that one or both of the following:</p>
  <blockquote>
  <ul>
  <li>the computer language is mainstream today.</li>
  <li>the computer language was main-stream in the past.</li>
  </ul>
  </blockquote>
  <p>double-precision is allowed, single-precision is allowed, any precision is allowed, base 16, base 8, etc...</p>
  <p>If you understand the question, then you can stop reading the question now.</p>
  <hr />
  <p>The string representation you provide for floating point must be used by the parser, or interpreter, or compiler for source code in one or more language which is well-used in the present or was well-used used in the past such as <a href="https://en.wikipedia.org/wiki/JavaScript" rel="nofollow noreferrer">java-script</a>, <a href="https://en.wikipedia.org/wiki/HTML" rel="nofollow noreferrer">HTML</a>, <a href="https://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow noreferrer">python</a>, <a href="https://en.wikipedia.org/wiki/C%2B%2B" rel="nofollow noreferrer">C++</a>, <a href="https://en.wikipedia.org/wiki/Fortran" rel="nofollow noreferrer">Fortran</a>, <a href="https://en.wikipedia.org/wiki/X86_assembly_language" rel="nofollow noreferrer">Intel x86 assembly</a>, <a href="https://en.wikipedia.org/wiki/Java" rel="nofollow noreferrer">Java</a>, etc...</p>
  <p>If the terms &quot;mainstream&quot; and &quot;well-used&quot; are too subjective for your taste, then the following list might help:</p>
  <blockquote>
  <p><a href="https://en.wikipedia.org/wiki/X86_assembly_language" rel="nofollow noreferrer"><strong>Intel x86 Assembly language</strong></a><br />
  <a href="https://en.wikipedia.org/wiki/Fortran" rel="nofollow noreferrer"><strong>Fortran</strong></a><br />
  <a href="https://en.wikipedia.org/wiki/C_(programming_language)" rel="nofollow noreferrer"><strong>C</strong></a><br />
  <a href="https://en.wikipedia.org/wiki/Java_(programming_language)" rel="nofollow noreferrer"><strong>Java</strong></a><br />
  ABAP<br />
  ABL<br />
  Ada<br />
  Assembly<br />
  Awk<br />
  Bash (Bourne Again Shell) script<br />
  C<br />
  C#<br />
  C++<br />
  CFML<br />
  COBOL<br />
  D<br />
  Dart<br />
  Delphi/Object<br />
  F#<br />
  Fortran<br />
  FoxPro<br />
  Go<br />
  Groovy<br />
  Haskell<br />
  Java<br />
  JavaScript<br />
  Julia
  Kotlin<br />
  Lisp<br />
  Logo<br />
  Lua<br />
  MATLAB<br />
  Objective-C<br />
  OpenEdge<br />
  Perl<br />
  PHP<br />
  PL/SQL<br />
  PowerShell<br />
  Prolog<br />
  Python<br />
  R
  Ruby
  Rust<br />
  SAS
  Scala
  Scheme
  Scratch
  SQL<br />
  Swift<br />
  Transact-SQL<br />
  TypeScript<br />
  Visual<br />
  Visual Basic<br />
  Zig</p>
  </blockquote>
  <p>This is a publicly editable wiki, so feel free to add more to it.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-26T10:43:47.637Z
Comments.Text: I'm a bit confused by the purpose of this question. Why make such a list? Can you edit it to add context as to why it is a question about teaching?
Comments.UserDisplayName: Ben I.
Tags: <floating-point>
Title: What is a fairly exhaustive list for how decimal numbers are written in source code?
ThreadText: # What is a fairly exhaustive list for how decimal numbers are written in source code?
  
  (Asked by: username_0 on 2023-04-26)
  
  What is an exhaustive as possible list of examples of floating-point literals as they are written in source code?
  
  That is, the float is not parsed from a text file with arbitrary floats.
  
  The float literal must is written in correct syntax for a programming language such that one or both of the following:
  
  > * the computer language is mainstream today.
  > * the computer language was main-stream in the past.
  
  double-precision is allowed, single-precision is allowed, any precision is allowed, base 16, base 8, etc...
  
  If you understand the question, then you can stop reading the question now.
  
  ---
  
  The string representation you provide for floating point must be used by the parser, or interpreter, or compiler for source code in one or more language which is well-used in the present or was well-used used in the past such as [java-script](https://en.wikipedia.org/wiki/JavaScript), [HTML](https://en.wikipedia.org/wiki/HTML), [python](https://en.wikipedia.org/wiki/Python_(programming_language)), [C++](https://en.wikipedia.org/wiki/C%2B%2B), [Fortran](https://en.wikipedia.org/wiki/Fortran), [Intel x86 assembly](https://en.wikipedia.org/wiki/X86_assembly_language), [Java](https://en.wikipedia.org/wiki/Java), etc...
  
  If the terms "mainstream" and "well-used" are too subjective for your taste, then the following list might help:
  
  > [**Intel x86 Assembly language**](https://en.wikipedia.org/wiki/X86_assembly_language)  
  > [**Fortran**](https://en.wikipedia.org/wiki/Fortran)  
  > [**C**](https://en.wikipedia.org/wiki/C_(programming_language))  
  > [**Java**](https://en.wikipedia.org/wiki/Java_(programming_language))  
  > ABAP  
  > ABL  
  > Ada  
  > Assembly  
  > Awk  
  > Bash (Bourne Again Shell) script  
  > C  
  > C#  
  > C++  
  > CFML  
  > COBOL  
  > D  
  > Dart  
  > Delphi/Object  
  > F#  
  > Fortran  
  > FoxPro  
  > Go  
  > Groovy  
  > Haskell  
  > Java  
  > JavaScript  
  > Julia
  > Kotlin  
  > Lisp  
  > Logo  
  > Lua  
  > MATLAB  
  > Objective-C  
  > OpenEdge  
  > Perl  
  > PHP  
  > PL/SQL  
  > PowerShell  
  > Prolog  
  > Python  
  > R
  > Ruby
  > Rust  
  > SAS
  > Scala
  > Scheme
  > Scratch
  > SQL  
  > Swift  
  > Transact-SQL  
  > TypeScript  
  > Visual  
  > Visual Basic  
  > Zig
  
  This is a publicly editable wiki, so feel free to add more to it.
  
  **Tags:** floating-point
  
  > **Comments:**
  > **username_1**: I'm a bit confused by the purpose of this question. Why make such a list? Can you edit it to add context as to why it is a question about teaching?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-04-26. Score: 1
  
  3.14e2  
  3.14e-67f  
  .14E4f  
  0x10.1p0  
  0x1p5  
  0x1e5  
  3.14'15'92  
  3.14e-4932l  
  3.14e38f  
  3.14e38  
  3.14e38l  
  3.14\_15F  
  10\_000\_000.0  
  +1.23E+1  
  3.1415926D0  
  5.d0  
  1.  
  0xfadebeep-8
  
  > **Comments:**
  > **username_2**: `0xfadebeep-8` is not a decimal.  
  
  ---
  
  