Changes between Version 2 and Version 3 of olivine/dsl/types/core
- Timestamp:
- May 22, 2020 11:01:58 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
olivine/dsl/types/core
v2 v3 15 15 16 16 == 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!):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. Some Olivine constructs require expressing percentage values. Here are examples of reals (for reals!): 18 18 19 19 {{{ … … 23 23 24 24 -23.82 25 }}} 26 27 == percent == 28 Percentages 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 {{{ 31 42% 32 33 2.8% 34 35 0.01% 25 36 }}} 26 37