Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
number literal
Last updated at 1:37 am UTC on 17 January 2006

Notation - BNF

number = ["-"][radix"r"]["-"]digits["."digits]["e"["-"]exponent]
exponent = decimal_digits
radix = decimal_digits
digits = [digit]+
digit = decimal_digit | uppercase letter
decimal_digits = [decimal_digit]+
decimal_digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"

NOTE:


NOTE:


Examples:

123.2
16rABC
16r17
2r101
-112.3
2.5e6