Script:
~addons/finance/finexec/toolbox/conversions.ijs
Contributor: William Szuch
Updated: 2023 04 21
Depend: nil
Definitions: loaded to locale base
Status: done
Script source:
conversions.ijs
Definitions for conversions eg to a
scalar.
Definitions
isscalar (monad)
Type: tacit
Test if scalar.
1 = is a scalar
0 = scalar
Syntax
toscalar(Z)
Z = item to be tested:
Example
isscalar (,12)
1
isscalar (12)
0
isscalar (,'A')
1
toscalar (monad)
Type: tacit
Create a scalar from non scalar item with $ = 1.
Syntax
toscalar(Z)
Z = non scalar with $ = 1
Example
toscalar (,12)
12
toscalar (,'A')
A
T =: 4 5 $ '1 2 3 4'
data(T)
1 2 3 41 2 3 41 2 3