[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scheme number notation



R3RS doesn't say what the meaning of E notation (for the exponent) is.
In MIT C/Scheme, apparently <stuff>e<exp> means <stuff>*10^<exp> 
regardless of the base.  E.g. #b1e2 is 100 decimal, not 100 binary.

Worse yet, though the lexical grammar allows E<exp> with any base, it
can't work with hex, since E is a hex digit.  Hence,
 #b1E2 = #o1E2 = 1E2 = 100
but #x1E2 = 482

Julie