This is an old version, view current version.
14.2 Literals: decimal and scientific notation
In programming languages such as Stan, numbers may be represented in
standard decimal (base 10) notation. For example, 2.39
or
-1567846.276452
. Remember there is no point in writing more than 16
significant digits as they cannot be represented. A number may be
coded in Stan using scientific notation, which consists of a signed
decimal representation of a base and a signed integer decimal
exponent. For example, 36.29e-3
represents the number \(36.29 \times 10^{-3}\), which is the same number as is represented by 0.3629
.