NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

2.4.3 Floating point literals

A floating-point literal is a mantissa, which consists of string of decimal digits, an optional decimal point (the ASCII period character), and an optional exponent. A floating-point literal is of type Double if no type character or the Double type character is specified. If the Single type character is specified, the literal is of type Single. If a floating-point literal's type is at odds with the size required to hold the floating point literal, an error results.

FloatingPointLiteral ::=
 FloatingPointLiteralValue [ FloatingPointTypeCharacter ] |
 IntLiteral FloatingPointTypeCharacter
FloatingPointTypeCharacter ::=
 SingleCharacter |
 DoubleCharacter |
 SingleTypeCharacter |
 DoubleTypeCharacter
SingleCharacter ::= F
DoubleCharacter ::= R
FloatingPointLiteralValue ::=
 IntLiteral . IntLiteral [ Exponent ] |
 . IntLiteral [ Exponent ] |
 IntLiteral Exponent
Exponent ::= E [ Sign ] IntLiteral
Sign ::= + | -