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 some scope.

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

0.12.6 adds the mode nowIncludesNano. Prior to this, "now" (for date/time) always included nanoseconds.

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
nowIncludesNano false true
false
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
nowIncludesNano false
true, false
consoleText true
true, false
newFilePerm 8x664
0 to 8x777

set mode examples

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

mode rounding = _round'halfawayfrom0

mode newFilePerm = 8x644

# set mode to its default mode newFilePerm = default