langur

As of 0.8, langur has user-settable modes. Initially, mode setting is limited to global scope, with the idea that modes should have the same scope as variables.

0.11 adds a rounding mode setting. Rounding now defaults to half away from zero. Prior to 0.11, rounding was always half even.

set mode examples

mode divMaxScale = 800 # sets max digits after decimal (for division) to 800

mode rounding = _round'halfawayfrom0

mode newFilePerm = 8x644

modes

All modes have a default.

name default allowable values
divMaxScale 33 0 to 2,147,483,646
rounding _round'halfawayfrom0 _round'halfawayfrom0
_round'halfeven
consoleText true true
false
newFilePerm 8x664 0 to 8x777
name default and allowable values
divMaxScale 33
0 to 2,147,483,646
rounding _round'halfawayfrom0
_round'halfawayfrom0, _round'halfeven
consoleText true
true, false
newFilePerm 8x664
0 to 8x777