[Fluent Inc. Logo] return to home search
next up previous contents index

3.2.1 Numbers

The most common prompt type is a number. Numbers can be either integers or reals. Valid numbers are, for example, 16, -2.4, .9E5, and +1E-5. Integers can also be specified in binary, octal, and hexadecimal form. The decimal integer 31 can be entered as 31, #b11111, #o37, or #x1f. In Scheme, integers are a subset of reals, so you do not need a decimal point to indicate that a number is real; 2 is just as much a real as 2.0. If you enter a real at an integer prompt, any fractional part will simply be truncated; 1.9 will become 1.


next up previous contents index Previous: 3.2 Text Prompt System
Up: 3.2 Text Prompt System
Next: 3.2.2 Booleans
© Fluent Inc. 2006-09-20