User Tools

Site Tools


harlowe:sign

Differences

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

Link to this comparison view

harlowe:sign [2017/10/09 20:39] (current)
Line 1: Line 1:
 +**(sign: // [[harlowe:​Number|Number]]//​) -> //​Number//​**
  
 +This maths macro produces -1 when given a negative [[harlowe:​number|number]],​ 0 when given 0, and 1
 +when given a positive number.
 +
 +=== Example usage: ===
 +
 +''​%%(sign:​ -4)%%''​ produces -1.
harlowe/sign.txt ยท Last modified: 2017/10/09 20:39 (external edit)