Tinderbox v10 Icon

Number-Type Attributes

Number

A numerical value. If no default value is specified, a Number type defaults to the value 0 (zero). User attributes of Number type may be configured, at first creation, as 'sequential'.

A sequential number attribute is like a database counter field, where the next unused number is issued and values no longer used are not re-issued; i.e. the next number is always higher than the last. Sequential numbers start at 1. When a new sequential attribute is added to an existing document, the already-created notes are initialised with sequential values of the new attribute, starting with the first notes in $OutlineOrder sequence. Thereafter notes are numbered in the order added, regardless of $OutlineOrder.

Very large or small numbers may be displayed (and set) in exponential notation:

0.000001 = 1e-06 

$MyNumber = 1.2e+3 sets '1200'

When very large or small number strings are typed into a Displayed Attributes box the result may be '0', in which case use exponential notation.

The Displayed Attributes display will also truncate the number of decimal places shown. The display limits seem to be:

When typing/pasting in number values to a KA box the input value is stored and not the rounded/truncated visible value. To see the decimal places in full coerce the value to a string, e.g. set a string attribute to the value of the number attribute. Beware that values copied from a Displayed Attributes display box use the visible value and not the real underlying value, so passing the number to a string and reading the latter is useful if data fidelity is required.

Default/Empty value

The value 0 (zero).

Sorting order

Ascending value in numeric sort order; default (0) thus lists first.

Number-type System Attributes

Built-in attributes of the number data type are listed below:


See also—notes linking to here: