Changes between Version 1 and Version 2 of olivine/dsl/types/core


Ignore:
Timestamp:
May 21, 2020 10:41:46 PM (4 years ago)
Author:
jonathan
Comment:

Introduce reals, rename "whole number" to "integer"

Legend:

Unmodified
Added
Removed
Modified
  • olivine/dsl/types/core

    v1 v2  
    77}}}
    88
    9 == whole number ==
    10 Whole numbers are numbers without fractions.  They can be positive or negative but cannot have a decimal point.
     9== integer ==
     10Integers are whole numbers, they are numbers without fractions.  They can be positive or negative but cannot have a decimal point.  For example, the most important whole number in all of the universe is:
     11
     12{{{
     1342
     14}}}
     15
     16== real ==
     17Reals are rational numbers, they are numbers that may have decimal points.  They can be positive or negative and although are compatible with whole number values you must always specify a decimal point to explicitly express a `real` value.  Here are examples of reals (for reals!):
     18
     19{{{
     2042.0
     21
     227.8
     23
     24-23.82
     25}}}
     26
    1127
    1228== list ==