User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

harlowe:round [2017/10/09 20:39] (current)
Line 1: Line 1:
 +**(round: // [[harlowe:​Number|Number]]//​) -> //​Number//​**
 +This macro rounds the given [[harlowe:​number|number]] to the nearest whole number - downward if
 +its decimals are smaller than 0.5, and upward otherwise. If a whole number is provided,
 +it returns the number as-is.
 +=== Example usage: ===
 +''​%%(round:​ 1.5)%%''​ produces 2.
harlowe/round.txt ยท Last modified: 2017/10/09 20:39 (external edit)