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


Ignore:
Timestamp:
May 22, 2020 11:01:58 PM (4 years ago)
Author:
jonathan
Comment:

Percentage values

Legend:

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

    v2 v3  
    1515
    1616== real ==
    17 Reals 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!):
     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.  Some Olivine constructs require expressing percentage values.  Here are examples of reals (for reals!):
    1818
    1919{{{
     
    2323
    2424-23.82
     25}}}
     26
     27== percent ==
     28Percentages are like reals, the difference being that the decimal place is moved two points to the right.  A value of `42%` is the same as a `real` value of `0.42`.  Examples:
     29
     30{{{
     3142%
     32
     332.8%
     34
     350.01%
    2536}}}
    2637