Reader Syntax Entry: Real Literal
← Prev | ↑ Chapter | Next → | Index | Symbols
Reader Syntax Entry: Real Literal
Name
Real Literal
Class
Reader Syntax
Concrete Syntax
real ::= sign? digit+ "." digit* exponent?
| sign? digit+ exponent
exponent ::= ("e" | "E") sign? digit+
Constituents
- optional sign
- decimal digits
- decimal point and/or scientific exponent
Description
A real literal denotes a double-precision floating-point number.
Acceptance Rules
- documented examples include
3.1,0.23,-56.123,4.1e-6 - numbers between
-1and1must contain a leading zero according to Autodesk prose
Strict/Lax Policy
- strict: reject ambiguous forms such as
.5and1.until product tests confirm them - lax: may accept host-confirmed forms beyond the conservative grammar
Examples
1.00.5-3.254.1e-6
Compatibility
- AutoCAD 2021+ Unicode changes do not directly alter numeric tokens, but reader changes should still be version-qualified
Notes
The published documentation leaves .5, 1., and some exponent variants under-specified.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [About Reals (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/KOR/AutoCAD-LT-AutoLISP/files/GUID-F2BFD097-295B-4499-BBD9-0A785C377070.htm)
- Status: partially documented, partially inferred.