HomeContents: |
## 8.5 Numeric constants (Ad)## IntroductionAnother kind of term is numeric constants. Numeric constants represent specific numbers, either integers or real numbers. ## IntegersIntegers are whole numbers and look like this: - 14
- 42
- 87
## Real numbersReals are numbers with decimal fractions, and look like this: - 37.5
- 3.141592
## SummaryThus numeric constants are numbers, and can be either integers or real numbers. They can be positive or negative. ## NextIt is time we have a quiz. The next page will be just that. When the quiz is done, we will go on to a new chapter, leaving the other two kinds of term (lists and variables) for later. The next chapter introduces you to a simple Prolog program. Prev: 8.4 Atomic constantsUp: 8 TermsNext: 8.6 Quiz: Terms |