Literales numéricos

Explicación

Sintaxis

numeric_literal ::= decimal_literal | based_literal
decimal_literal ::= numeral [.numeral] [exponent]
numeral ::= digit {[underline] digit}
exponent ::= E [+] numeral | E – numeral
digit ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
based_literal ::= 
   base # based_numeral [.based_numeral] # [exponent]
base ::= numeral
based_numeral ::= 
extended_digit {[underline] extended_digit}
extended_digit ::= digit | A | B | C | D | E | F

Ejemplo

Literales decimales

 

Literales con base