DataChain functions
genericsData &
HandleData
The Datachain formulas are used to process and cross-reference data at different strategic levels in the value chain: Business Entities, DataBlocks and HandleData data sources.
These formulas call on functions, characterized by an input (argument) and output (return) value type.
DataChain offers over 350 unit functions for creating formulas, detailed on this page.
Some functions are marked as deprecated: they will be removed in a future version and we recommend that you stop using them in favour of the formulas specified in their description. |
Foreword on data types
The data manipulated in Datachain is typed in order to:
-
Make it easier to select formulas/functions appropriate to the type (you can’t sum two strings of characters),
-
Handle the appropriate data structures (a telephone number will usually be handled as a string of characters, but a price as a number),
-
Improve overall pipeline execution performance.
Datachain currently defines the following data types:
Booléen / Boolean |
B |
2 values true ou false |
|
Décimal / Decimal |
De |
Floating-point number with 15 significant digits, value: ~ ± 1,79769313486231570E+308 |
|
Entier / Integer |
I |
Number between -2147483648 et 2147483647. |
|
Grand nombre entier / Big Integer |
B.I |
Number between -9223372036854775808 et 9223372036854775807 |
|
Chaîne de caractère / String |
S |
Any type of string |
|
Date / Date |
Da |
Date and time with nanosecond precision. More information here |
|
Géométrie / Geometry |
Ge |
Specific format for geometry formulas, mainly using the Sedona library |
|
Mots / Words |
W |
Specific format for semantic analysis formulas |
Formulas for Decimal numbers
dec.abs
dec.abs(Value - De,I,B.I) |
|
Returns absolute value of a number. |
|
Parameters : |
|
Value - De,I,B.I |
Input the number whose absolute value we are looking for |
Return : De |
|
|
|
Examples : |
|
dec.abs( -1.2 ) = 1.2 |
|
dec.abs( -10 ) = 10 |
|
dec.abs( null ) = null |
dec.cosinus
dec.cosinus(Value - De,I,B.I) |
|
Returns Cosine of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.cosinus( 0 ) = 1 |
|
dec.cosinus( null ) = null |
dec.cosinus_hyperb
dec.cosinus_hyperb(Value - De,I,B.I) |
|
Returns Hyperbolic Cosine of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.cosinus_hyperb( 0 ) = 1 |
|
dec.cosinus_hyperb( null ) = null |
dec.cosinus_invers
dec.cosinus_invers(Value - De,I,B.I) |
|
Returns inverse of Cosine of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.cosinus_invers( 1 ) = 0 |
|
dec.cosinus_invers( null ) = null |
dec.create
dec.create(Value - De,I,B.I) |
|
Create a Decimal from a value entered. |
|
Parameters : |
|
Value - De,I,B.I |
Specify a value |
Return : De |
|
|
|
Examples : |
|
dec.create( 10 ) = 10.00 |
|
dec.create( -140.56 ) = -140.56 |
dec.cube
dec.cube(Value - De,I,B.I) |
|
Returns Cubic Root of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.cube( -8 ) = -2 |
|
dec.cube( null ) = null |
|
dec.cube( NaN ) = NaN |
dec.degree_to_rad
dec.degree_to_rad(Value - De,I,B.I) |
|
Transforms degrees into radians. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.degree_to_rad( 0 ) = 0 |
|
dec.degree_to_rad( 90 ) = 1.5707963267948966 |
dec.diff
dec.diff(List - ARGS(De,I,B.I)) |
|
Returns the difference between all elements of a list of Decimals. |
|
Parameters : |
|
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.diff( [ 1 , 1.2 , 1.4 ] ) = -1.6 |
|
dec.diff( [ -1.3 , 1.4 , -1.5 ] ) = -1.2 |
dec.div
dec.div(List - ARGS(De,I,B.I)) |
|
Returns the division of a list of Decimals. |
|
Parameters : |
|
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.div( [ 4 , 2 , -4 ] ) = -0.5 |
|
dec.div( [ 2 , 0.5 ] ) = 4 |
dec.exponentiel
dec.exponentiel(Value - De,I,B.I) |
|
Returns Exponential of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.exponentiel( 0 ) = 1 |
|
dec.exponentiel( null ) = null |
dec.fix
dec.fix(Value - De,I,B.I) |
|
Returns the integer part of a Decimal. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : B.I |
|
|
|
Examples : |
|
dec.fix( 1.57079632679 ) = 1 |
|
dec.fix( null ) = null |
dec.generate
dec.generate(Increment - De,I,B.I, Start Decimal - De,I,B.I, End Decimal - De,I,B.I) |
|
Generates a list of Decimals from the Start Decimal by adding the Increment to the End Decimal. |
|
Parameters : |
|
Increment - De,I,B.I |
Input value to add at each step of the generation |
Start Decimal - De,I,B.I |
Specify initial value of the sequence |
End Decimal - De,I,B.I |
Specify the maximum value of the sequence (inclusive) |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.generate( 0.3, 1, 2 ) = [ 1 , 1.3 , 1.6 , 1.9 ] |
|
dec.generate( 0, 1, 2 ) = [ ] |
dec.hexa
dec.hexa(Value - De,I,B.I) |
|
Returns Hexadecimal value of a Decimal. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : S |
|
|
|
Examples : |
|
dec.hexa( 16 ) = "10" |
|
dec.hexa( 15 ) = "F" |
|
dec.hexa( 2654 ) = "A5E" |
dec.if
dec.if(Rule - B, Value if true - De,I,B.I, Value if false - De,I,B.I) |
|
Checks if condition is met and returns a Decimal if result of the condition you specified is True, and another Decimal if result is False. |
|
Parameters : |
|
Rule - B |
Specify condition to process |
Value if true - De,I,B.I |
Return value if test is true |
Value if false - De,I,B.I |
Return value if test is false |
Return : De |
|
|
dec.list.as_str
dec.list.as_str(List - LIST(De,I,B.I)) |
|
Transforms a list into a String. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : S |
|
|
|
Examples : |
|
dec.list.as_str( [ 1.2 , 1.2 ] ) = "[1.2, 1.2]" |
dec.list.compact
dec.list.compact(List - LIST(De,I,B.I)) |
|
Removes Null values from the list. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.compact( [ 1 , 2 , 3 ] ) = [ 1 , 2 , 3 ] |
|
dec.list.compact( [ null , 5 , null ] ) = [ 5 ] |
dec.list.contains
dec.list.contains(List - LIST(De,I,B.I), Number - De,I,B.I) |
|
Returns True if searched Decimal is present in the list. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Number - De,I,B.I |
Number to search list |
Return : B |
|
|
|
Examples : |
|
dec.list.contains( [ 1.2 , 2.3 ], 1.2 ) = true |
|
dec.list.contains( [ 1.2 , 1.2 , 1.2 ], -1.2 ) = false |
|
dec.list.contains( [ null , 5 ], null ) = true |
dec.list.count.distinct
dec.list.count.distinct(List - LIST(De,I,B.I)) |
|
Returns a list of key-values containing the distinct values and their occurrence in the list. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : LIST(S) |
|
|
|
Examples : |
|
dec.list.count.distinct( [ 1.2 , 2.3 , 1.2 ] ) = [{"value":1.2,"count":2},{"value":2.3,"count":1}] |
dec.list.create
dec.list.create(Values - ARGS(De,I,B.I)) |
|
Creation of a list from Decimals. |
|
Parameters : |
|
Values - ARGS(De,I,B.I) |
Input a value (n by adding arguments) |
Return : LIST(De) |
|
|
dec.list.diff
dec.list.diff(First list - LIST(De,I,B.I), Second list - LIST(De,I,B.I)) |
|
Returns the list of Decimals that differ between two Decimal lists. |
|
Parameters : |
|
First list - LIST(De,I,B.I) |
Specify first list of numbers |
Second list - LIST(De,I,B.I) |
Specify second list of numbers |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.diff( [ 1.2 , 1.2 ], [ 1.2 , 1.4 ] ) = [ 1.2 , 1.4 ] |
|
dec.list.diff( [ 1.2 , -1.2 , 1.2 ], [ ] ) = [ 1.2 , 1.2 , -1.2 ] |
|
dec.list.diff( [ 1.2 , NaN ], [ NaN ] ) = [ 1.2 ] |
dec.list.distinct
dec.list.distinct(List - LIST(De,I,B.I)) |
|
Returns a list containing distinct values (unique values) of the entered list. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.distinct( [ 1.2 , 2.3 , 1.2 ] ) = [ 1.2 , 2.3 ] |
|
dec.list.distinct( [ 1.2 , 1.2 , null , null ] ) = [ 1.2 , null ] |
dec.list.except
dec.list.except(First list - LIST(De,I,B.I), Second list - LIST(De,I,B.I)) |
|
Returns a Decimal list, from a first list that are not in a second list. |
|
Parameters : |
|
First list - LIST(De,I,B.I) |
Specify first list of numbers |
Second list - LIST(De,I,B.I) |
Specify second list of numbers |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.except( [ 1 , 4 ], [ 1 , 2 , 3 ] ) = [ 4 ] |
|
dec.list.except( [ 1 , null , 3 ], [ 1 , 2 ] ) = [ null , 3 ] |
|
dec.list.except( [ 1 , null , 3 ], [ 1 , null ] ) = [ 3 ] |
dec.list.flat
dec.list.flat(List - LIST(De,I,B.I)) |
|
Transforms an array of arrays into a single array. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list of lists to process |
Return : LIST(De) |
|
|
dec.list.get
dec.list.get(List - LIST(De,I,B.I), Index - I) |
|
Extract a number from a list by specifying its index (the first element of the list being at index 0) |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Index - I |
Specify index to extract from list |
Return : De |
|
|
|
Examples : |
|
dec.list.get( [ 1.2 , 2.3 , 3.4 , 4.5 ], 3 ) = 4.5 |
|
dec.list.get( [ 1.2 , null ], 1 ) = null |
|
dec.list.get( [ 1.2 , 1.3 ], 5 ) = null |
dec.list.insert
dec.list.insert(List - LIST(De,I,B.I), Position - I, Value - De,I,B.I) |
|
Inserts an element in a list of Decimals at the specified position (numbered from 1 and from right to left if negative). Adds null values if necessary to reach the desired position and returns the new, modified list. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Position - I |
Specify the insertion position in the list |
Value - De,I,B.I |
Specify the value to insert in the list |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.insert( [ 1 , 1 ], 1, 5 ) = [ 5 , 1 , 1 ] |
|
dec.list.insert( [ 1 ], 3, 4.3 ) = [ 1 , null , 4.3 ] |
dec.list.intersect
dec.list.intersect(First list - LIST(De,I,B.I), Second list - LIST(De,I,B.I)) |
|
Returns the list of numbers in common between two number lists (can contain the same value several times). |
|
Parameters : |
|
First list - LIST(De,I,B.I) |
Specify first list of numbers |
Second list - LIST(De,I,B.I) |
Specify second list of numbers |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.intersect( [ 1.2 , 1.2 ], [ 1.2 ] ) = [ 1.2 ] |
|
dec.list.intersect( [ 1.2 ], [ 1.2 , 1.2 ] ) = [ 1.2 ] |
|
dec.list.intersect( [ 5.2 , 0 , null , 2.3 ], [ 5.2 , 2.3 , -3.4 , null ] ) = [ null , 2.3 , 5.2 ] |
dec.list.max
dec.list.max(List - LIST(De,I,B.I)) |
|
Returns the largest number in a list of numbers. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.list.max( [ 1.2 , 2.3 , 1.2 ] ) = 2.3 |
|
dec.list.max( [ null , 5 ] ) = 5.0 |
dec.list.max_occur
dec.list.max_occur(List - LIST(De,I,B.I)) |
|
Gives the most represented number in the list (or a list in egality case). |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify a list of number |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.max_occur( [ 1.2 , 2.3 , 1.2 ] ) = [ 1.2 ] |
|
dec.list.max_occur( [ 1.2 , 2.3 , 1.2 , 2.3 ] ) = [ 1.2 , 2.3 ] |
|
dec.list.max_occur( [ 1.2 , null , null ] ) = [ 1.2 ] |
dec.list.mean
dec.list.mean(List - LIST(De,I,B.I)) |
|
Returns the mean value of a list of numbers. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.list.mean( [ 1.2 , 1.3 , 1.4 , 1.5 ] ) = 1.35 |
|
dec.list.mean( bigint.list.create( [ 1 , 1 , 4 , 5 ] ) ) = 2.75 |
|
dec.list.mean( int.list.create( [ 1 , 1 , 3 , 4 ] ) ) = 2.25 |
|
dec.list.mean( [ 1.2 , 1.2 , NaN ] ) = 1.2 |
dec.list.median
dec.list.median(List - LIST(De,I,B.I)) |
|
Returns Median of a list of numbers. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.list.median( [ 1.2 , 1.3 ] ) = 1.25 |
|
dec.list.median( [ 1.2 , 1.3 , 1.4 , 1.5 , 7.8 ] ) = 1.4 |
dec.list.min
dec.list.min(List - LIST(De)) |
|
Returns the smallest number in the list. |
|
Parameters : |
|
List - LIST(De) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.list.min( [ 5.2 , 2.3 , -3.4 ] ) = -3.4 |
|
dec.list.min( [ null , 5 ] ) = 5.0 |
dec.list.min_occur
dec.list.min_occur(List - LIST(De,I,B.I)) |
|
Gives the least represented number (or a list in egality case). |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.min_occur( [ 1.2 , 2.3 , 1.2 ] ) = [ 2.3 ] |
|
dec.list.min_occur( [ 1.2 , 1.2 , null ] ) = [ 1.2 ] |
dec.list.percentile
dec.list.percentile(List - LIST(De,B.I,I), Percentile - De,B.I,I) |
|
Returns the Percentile of a list of number. With a Percentile of value X, the formula must return the element of the list compared to which at least X% of the elements have a lower value. |
|
Parameters : |
|
List - LIST(De,B.I,I) |
Specify list to process |
Percentile - De,B.I,I |
Specify the Percentile (from 0 to 100) |
Return : De |
|
|
|
Examples : |
|
dec.list.percentile( [ 1.2 , 1.3 , 1.4 , 1.5 ], 25 ) = 1.2 |
|
dec.list.percentile( [ 1.2 , 1.3 , 1.4 , 1.5 ], 80 ) = 1.5 |
|
dec.list.percentile( [ 1 , null ], 0 ) = 1 |
|
dec.list.percentile( [ NaN , null ], 0 ) = null |
dec.list.position
dec.list.position(List - LIST(De,I,B.I), Value - De,I,B.I) |
|
Returns the position in the list of the value of argument 2. Returns -1 if argument 2 is absent. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Value - De,I,B.I |
Number to search in the list |
Return : I |
|
|
|
Examples : |
|
dec.list.position( [ 1.2 , 1.3 ], 1 ) = -1 |
|
dec.list.position( [ 1.2 , 2.3 , 3.4 , 4.5 , 5.6 ], 4.5 ) = 3 |
|
dec.list.position( [ 1.2 , null ], null ) = 1 |
dec.list.remove
dec.list.remove(List - LIST(De,B.I,I), Value - De,B.I,I) |
|
Removes all occurrences of a Decimal in a list of Decimals. |
|
Parameters : |
|
List - LIST(De,B.I,I) |
Specify list to process |
Value - De,B.I,I |
Value to remove |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.remove( [ 1.3 , 2.9 , 2.1 , 3 , 2.1 ], 2.1 ) = [ 1.3 , 2.9 , 3 ] |
|
dec.list.remove( [ null , 99.99 , null , 0.5 ], null ) = [ 99.99 , 0.5 ] |
|
dec.list.remove( [ null , 1 , 1 , 0.001 ], 0.001 ) = [ null , 1 , 1 ] |
|
dec.list.remove( [ ], 1 ) = [ ] |
dec.list.remove_extend
dec.list.remove_extend(List - LIST(De,B.I,I), List - ARGS(De,B.I,I)) |
|
Removes all occurrences of multiple Decimals in a list of Decimals. |
|
Parameters : |
|
List - LIST(De,B.I,I) |
Specify list to process |
List - ARGS(De,B.I,I) |
Specify list of values to remove |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.remove_extend( [ 1.3 , 2.9 , 2.1 , 3 , 2.1 ], [ 2.1 , 2.9 , 65.235 ] ) = [ 1.3 , 3 ] |
|
dec.list.remove_extend( [ null , 99.99 , null , 0.5 ], [ null ] ) = [ 99.99 , 0.5 ] |
|
dec.list.remove_extend( [ null , 1 , 1 , 0.001 ], [ 0.001 ] ) = [ null , 1 , 1 ] |
|
dec.list.remove_extend( [ ], [ 1 ] ) = [ ] |
dec.list.replace
dec.list.replace(List - LIST(De,B.I,I), Number - De,B.I,I, Number - De,B.I,I) |
|
Replaces all occurrences of a Decimal in a list of Decimals. |
|
Parameters : |
|
List - LIST(De,B.I,I) |
Specify list to process |
Number - De,B.I,I |
Value to replace |
Number - De,B.I,I |
Replacement value |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.replace( [ 1.3 , 2.9 , 2.1 , 3 , 2.1 ], 2.1, 99 ) = [ 1.3 , 2.9 , 99 , 3 , 99 ] |
|
dec.list.replace( [ null , 99.99 , null , 0.5 ], null, 1.123 ) = [ 1.123 , 99.99 , 1.123 , 0.5 ] |
|
dec.list.replace( [ null , 1 , 1 , 0.001 ], 0.001, null ) = [ null , 1 , 1 , null ] |
|
dec.list.replace( [ ], 1, 1 ) = [ ] |
dec.list.replace_extend
dec.list.replace_extend(List - LIST(De,B.I,I), List - ARGS(De,B.I,I), List - ARGS(De,B.I,I)) |
|
Replaces all occurrences of multiple Decimals in a list of Decimals. All replacements are done simultaneously. The correspondence between the value to be replaced and the replacement value is done according to the index of the values in the parameter list. If the same value appears multiple times among the values to be replaced, it will always be replaced by the replacement value associated with its first occurrence in the list. |
|
Parameters : |
|
List - LIST(De,B.I,I) |
Specify list to process |
List - ARGS(De,B.I,I) |
Specify list of values to replace |
List - ARGS(De,B.I,I) |
Specify list of replacement values |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.replace_extend( [ 1.3 , 2.9 , 2.1 , 3 , 2.1 ], [ 2.1 , 2.9 , 99 ], [ 2 , -3.5 , 999.99 ] ) = [ 1.3 , -3.5 , 2 , 3 , 2 ] |
|
dec.list.replace_extend( [ 15.5 , 3 , 2.1 ], [ 2.1 , 2.9 , 99 ], [ 2 ] ) = [ 15.5 , 3 , 2.1 ] |
|
dec.list.replace_extend( [ null , 1 , 1 , 0.001 ], [ ], [ ] ) = [ null , 1 , 1 , 0.001 ] |
|
dec.list.replace_extend( [ ], [ 1 ], [ 1 ] ) = [ ] |
dec.list.sort
dec.list.sort(List - LIST(De,I,B.I)) |
|
Sort ascending list of numbers. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to sort |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.sort( [ 1.2 , -1.3 , 4.5 , 9 , 8.999 , 0 ] ) = [ -1.3 , 0 , 1.2 , 4.5 , 8.999 , 9 ] |
|
dec.list.sort( [ 1.2 , null ] ) = [ null , 1.2 ] |
dec.list.sum
dec.list.sum(List - LIST(De,I,B.I)) |
|
Returns sum of a list of number. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to add |
Return : De |
|
|
|
Examples : |
|
dec.list.sum( [ 1.2 , 1.3 , 1.4 , 1.5 ] ) = 5.4 |
|
dec.list.sum( [ 1.2 , 1.3 , 1.4 , 1.5 , NaN ] ) = 5.4 |
dec.list.to_bigint
dec.list.to_bigint(List - LIST(De,I,B.I)) |
|
Transforms a list of Decimal into a list of Big Integer. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : LIST(B.I) |
|
|
|
Examples : |
|
dec.list.to_bigint( [ 1.2 , -1.3 ] ) = [ 1 , -1 ] |
|
dec.list.to_bigint( [ 1.2 , null ] ) = [ 1 , null ] |
dec.list.to_int
dec.list.to_int(List - LIST(De,I,B.I)) |
|
Transforms a list of Decimal into a list of Integer. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : LIST(I) |
|
|
|
Examples : |
|
dec.list.to_int( [ 1.2 , -1.3 ] ) = [ 1 , -1 ] |
|
dec.list.to_int( [ 1.2 , null ] ) = [ 1 , null ] |
dec.list.to_str
dec.list.to_str(List - LIST(De,I,B.I)) |
|
Transforms a list of Decimal into a list of String. |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Return : LIST(S) |
|
|
|
Examples : |
|
dec.list.to_str( [ 1.2 , -1.3 ] ) = [ "1.2" , "-1.3" ] |
|
dec.list.to_str( [ 1.2 , null ] ) = [ "1.2" , null ] |
dec.list.union
dec.list.union(First list - LIST(De,I,B.I), Second list - LIST(De,I,B.I)) |
|
Union of two Decimals lists. |
|
Parameters : |
|
First list - LIST(De,I,B.I) |
Specify first list of numbers |
Second list - LIST(De,I,B.I) |
Specify second list of numbers |
Return : LIST(De) |
|
|
|
Examples : |
|
dec.list.union( [ 1.2 , 2.3 , 3.4 ], [ 4.5 , 5.6 ] ) = [ 1.2 , 2.3 , 3.4 , 4.5 , 5.6 ] |
|
dec.list.union( [ 1.2 , -1.2 , 1.2 ], [ null ] ) = [ 1.2 , -1.2 , 1.2 , null ] |
dec.log
dec.log(Value - De,I,B.I) |
|
Returns Natural Log (ln) of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.log( 10 ) = 2.302585092994046 |
|
dec.log( 0 ) = null |
dec.log_10
dec.log_10(Value - De,I,B.I) |
|
Returns base 10 Log of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.log_10( 10 ) = 1 |
|
dec.log_10( 0 ) = null |
|
dec.log_10( null ) = null |
dec.log_2
dec.log_2(Value - De,I,B.I) |
|
Returns base 2 Log of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.log_2( 6 ) = 2.584962500721156 |
|
dec.log_2( 0 ) = null |
dec.max
dec.max(List - ARGS(De,I,B.I)) |
|
Returns the maximum value of a list of Decimals. |
|
Parameters : |
|
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.max( [ 1 , 33.6 , 1.4 ] ) = 33.6 |
dec.mean
dec.mean(List - ARGS(De,I,B.I)) |
|
Returns the mean of a list of Decimal arguments. |
|
Parameters : |
|
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.mean( [ 1 , null , 1.4 ] ) = null |
|
dec.mean( [ 2 , 5 , 3 , 4 ] ) = 3.5 |
dec.median
dec.median(List - ARGS(De,I,B.I)) |
|
Returns the median of a list of Decimal arguments. |
|
Parameters : |
|
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.median( [ 1 , null , 1.4 ] ) = null |
|
dec.median( [ 2 , 5 , 3 , 4 ] ) = 3.5 |
dec.min
dec.min(List - ARGS(De,I,B.I)) |
|
Returns the minimum value of a list of Decimals. |
|
Parameters : |
|
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.min( [ 1 , 33.6 , 1.4 ] ) = 1 |
dec.mult
dec.mult(List - ARGS(De,I,B.I)) |
|
Returns the multiplication of all elements of a list of Decimals. |
|
Parameters : |
|
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.mult( [ 1 , null , 1.4 ] ) = null |
|
dec.mult( [ 2 , 0.5 , 3 , 4 ] ) = 12 |
dec.nan_to_null
dec.nan_to_null(Value - De,I,B.I) |
|
Replace NaN with Null. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.nan_to_null( 4 ) = 4 |
|
dec.nan_to_null( NaN ) = null |
|
dec.nan_to_null( null ) = null |
dec.power
dec.power(Value - De,I,B.I, Power Value - De,I,B.I) |
|
Returns power of a Decimal. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Power Value - De,I,B.I |
Specify Power Value |
Return : De |
|
|
|
Examples : |
|
dec.power( 4, 2 ) = 16 |
|
dec.power( 0.5, 1 ) = 0.5 |
|
dec.power( 0.25, 0 ) = 1 |
|
dec.power( null, null ) = null |
|
dec.power( 1, null ) = null |
dec.rad_to_degree
dec.rad_to_degree(Value - De,I,B.I) |
|
Transforms radians into degrees. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : De |
|
|
|
Examples : |
|
dec.rad_to_degree( 0 ) = 0 |
|
dec.rad_to_degree( 1.57079632679 ) = 89.99999999971945 |
|
dec.rad_to_degree( null ) = null |
dec.rate_variation
dec.rate_variation(Initial Value - De,I,B.I, Final value - De,I,B.I, Precision - I, Format of the result - CHOICE(B)) |
|
Returns a rate of change between two values. |
|
Parameters : |
|
Initial Value - De,I,B.I |
Specify Initial value |
Final value - De,I,B.I |
Specify Final value |
Precision - I |
Specify Precision of result |
Format of the result - CHOICE(B) |
Format of the result (Ratio or percentage) |
Return : De |
|
|
|
Examples : |
|
dec.rate_variation( 1.2, 2.4, 2, false ) = 100 |
|
dec.rate_variation( 1.2, 2.4, 2, true ) = 1 |
|
dec.rate_variation( 1.2, 3.6, 2, false ) = 200 |
|
dec.rate_variation( null, null, 0, true ) = null |
dec.replace_null
dec.replace_null(Value - De,I,B.I, Number replacing Null - De,I,B.I) |
|
Replaces a Null value by a Decimal. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Number replacing Null - De,I,B.I |
Specify number that replaces Null value |
Return : De |
|
|
|
Examples : |
|
dec.replace_null( null, 2.1 ) = 2.1 |
|
dec.replace_null( 7, 2.1 ) = 7 |
|
dec.replace_null( NaN, 2 ) = NaN |
dec.round
dec.round(Value - De,I,B.I, Rounding accuracy - I) |
|
Performs rounding of Decimal by indicating precision of rounding. |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Rounding accuracy - I |
Specify rounding accuracy |
Return : De |
|
|
|
Examples : |
|
dec.round( 1.2, 0 ) = 1 |
|
dec.round( 1.6, 0 ) = 2 |
|
dec.round( null, 2 ) = null |
dec.sign
dec.sign(Value - De,I,B.I) |
|
Extract sign of a number |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Return : De |
|
|
|
Examples : |
|
dec.sign( 1.2 ) = 1 |
|
dec.sign( 0 ) = 0 |
|
dec.sign( -2.123 ) = -1 |
|
dec.sign( null ) = null |
dec.sinus
dec.sinus(Value - De,I,B.I) |
|
Returns the Sine of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Return : De |
|
|
|
Examples : |
|
dec.sinus( 0 ) = 0 |
|
dec.sinus( null ) = null |
dec.sinus_hyperb
dec.sinus_hyperb(Value - De,I,B.I) |
|
Returns Hyperbolic Sine of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Return : De |
|
|
|
Examples : |
|
dec.sinus_hyperb( 0 ) = 0 |
|
dec.sinus_hyperb( null ) = null |
dec.sinus_invers
dec.sinus_invers(Value - De,I,B.I) |
|
Returns inverse of Sinus of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Return : De |
|
|
|
Examples : |
|
dec.sinus_invers( 0 ) = 0 |
|
dec.sinus_invers( null ) = null |
dec.square
dec.square(Value - De,I,B.I) |
|
Returns Square Root of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Return : De |
|
|
|
Examples : |
|
dec.square( 4 ) = 2 |
|
dec.square( -4 ) = NaN |
|
dec.square( 0.25 ) = 0.5 |
|
dec.square( null ) = null |
dec.sum
dec.sum(List - ARGS(De,I,B.I)) |
|
Returns the sum of a list of Decimals. |
|
Parameters : |
|
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
dec.sum( [ 1 , 1.2 , 1.4 ] ) = 3.6 |
|
dec.sum( [ -1.3 , 1.4 , -1.5 ] ) = -1.4 |
dec.tangent
dec.tangent(Value - De,I,B.I) |
|
Returns Tangent of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Return : De |
|
|
|
Examples : |
|
dec.tangent( 0 ) = 0 |
|
dec.tangent( null ) = null |
dec.tangent_hyperb
dec.tangent_hyperb(Value - De,I,B.I) |
|
Returns Hyperbolic tangent of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Return : De |
|
|
|
Examples : |
|
dec.tangent_hyperb( 0 ) = 0 |
|
dec.tangent_hyperb( null ) = null |
dec.tangent_invers
dec.tangent_invers(Value - De,I,B.I) |
|
Returns inverse of Tangent of a value. |
|
Parameters : |
|
Value - De,I,B.I |
Value to process |
Return : De |
|
|
|
Examples : |
|
dec.tangent_invers( 0 ) = 0 |
|
dec.tangent_invers( null ) = null |
dec.to_bigint
dec.to_bigint(Value - De,I,B.I) |
|
Transforms a Decimal into a Big Integer. |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to transform |
Return : B.I |
|
|
|
Examples : |
|
dec.to_bigint( 1.2 ) = 1 |
|
dec.to_bigint( -1.8 ) = -1 |
|
dec.to_bigint( NaN ) = null |
dec.to_int
dec.to_int(Value - De,I,B.I) |
|
Transforms a Decimal into an Integer (truncated value). |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to transform |
Return : I |
|
|
|
Examples : |
|
dec.to_int( 1.2 ) = 1 |
|
dec.to_int( -1.8 ) = -1 |
|
dec.to_int( NaN ) = null |
Formulas for Integer numbers
int.abs
int.abs(Value - I) |
|
Returns absolute value of an Integer. |
|
Parameters : |
|
Value - I |
Input the Integer for which we are looking for absolute value |
Return : I |
|
|
|
Examples : |
|
int.abs( 2 ) = 2 |
|
int.abs( -1 ) = 1 |
|
int.abs( null ) = null |
int.create
int.create(Value - I) |
|
Create an Integer from an entered value. |
|
Parameters : |
|
Value - I |
Specify the value to transform into an Integer number |
Return : I |
|
|
|
Examples : |
|
int.create( 20 ) = 20 |
|
int.create( null ) = null |
int.date_from_xls
int.date_from_xls(Serial number - I, Timezone - CHOICE(S)) |
|
Returns an ISO 8601 DateTime corresponding to the serial number of Excel’s 1900 date system (number of days that have elapsed since 1st January 1900) in the requested TimeZone. |
|
Parameters : |
|
Serial number - I |
Enter the serial number in Excel’s 1900 date system that corresponds to the desired date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
int.date_from_xls( "1", "UTC" ) = 1900-01-01T00:00:00Z |
|
int.date_from_xls( "43880", "Europe/Paris" ) = 2020-02-18T23:00:00Z |
int.diff
int.diff(List - ARGS(I)) |
|
Returns the difference between all elements of a list of Integers. |
|
Parameters : |
|
List - ARGS(I) |
Specify list to process |
Return : I |
|
|
|
Examples : |
|
int.diff( [ 1 , 4 , 2 , 3 ] ) = -8 |
|
int.diff( [ 1 , null ] ) = null |
int.generate
int.generate(Increment - I, Start - I, End - I) |
|
Generates a list of Integer from start number by adding increment until value is less or equal than end number. |
|
Parameters : |
|
Increment - I |
Input the value of the increment |
Start - I |
Specify the increment start integer |
End - I |
Specify the increment end integer |
Return : LIST(I) |
|
|
|
Examples : |
|
int.generate( 2, 0, 4 ) = [ 0 , 2 , 4 ] |
|
int.generate( 3, 0, 10 ) = [ 0 , 3 , 6 , 9 ] |
|
int.generate( null, 1, 2 ) = [ ] |
int.if
int.if(Rule - B, Value if true - I, Integer if false - I) |
|
Checks if condition is met and returns an Integer if result of the condition you specified is True, and an another Integer if result is False. |
|
Parameters : |
|
Rule - B |
Specify condition to process |
Value if true - I |
Returned integer if test is true |
Integer if false - I |
Returned integer if test is false |
Return : I |
|
|
int.is_even
int.is_even(Value - I) |
|
Checks if an Integer is even. |
|
Parameters : |
|
Value - I |
Input a integer |
Return : B |
|
|
|
Examples : |
|
int.is_even( -1 ) = false |
|
int.is_even( 0 ) = true |
|
int.is_even( null ) = null |
int.is_odd
int.is_odd(Value - I) |
|
Checks if an Integer is odd. |
|
Parameters : |
|
Value - I |
Input a integer |
Return : B |
|
|
|
Examples : |
|
int.is_odd( -1 ) = true |
|
int.is_odd( 0 ) = false |
|
int.is_odd( null ) = null |
int.list.as_str
int.list.as_str(List - LIST(I)) |
|
Transforms a list of Integer into a String. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : S |
|
|
|
Examples : |
|
int.list.as_str( [ 1 , 4 , 2 , 3 ] ) = "[1, 4, 2, 3]" |
|
int.list.as_str( [ ] ) = null |
|
int.list.as_str( [ null , 1 ] ) = "[null, 1]" |
int.list.compact
int.list.compact(List - LIST(I)) |
|
Removes Null values from the list of Integer. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.compact( [ 1 , 2 , 3 ] ) = [ 1 , 2 , 3 ] |
|
int.list.compact( [ null , 5 , null ] ) = [ 5 ] |
int.list.contains
int.list.contains(List - LIST(I), Number - I) |
|
Checks if searched Integer is present in the list of Integer. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Number - I |
Integer to search list of integer |
Return : B |
|
|
|
Examples : |
|
int.list.contains( [ 1 , 2 ], 1 ) = true |
|
int.list.contains( [ null , 5 ], null ) = true |
|
int.list.contains( [ ], null ) = false |
int.list.count.distinct
int.list.count.distinct(List - LIST(I)) |
|
Returns a list of key values containing the distinct values and their occurrence in the list of Integer. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : LIST(S) |
|
|
|
Examples : |
|
int.list.count.distinct( [ 1 , 2 , 1 ] ) = [{"value":2,"count":1},{"value":1,"count":2}] |
|
int.list.count.distinct( [ 1 , 2 , 3 ] ) = [{"value":2,"count":1},{"value":3,"count":1},{"value":1,"count":1}] |
int.list.create
int.list.create(Values - ARGS(I)) |
|
Creation of a list of Integer. |
|
Parameters : |
|
Values - ARGS(I) |
Input a integer to add (the ARGS function allows you to add n arguments) |
Return : LIST(I) |
|
|
int.list.diff
int.list.diff(First list - LIST(I), Second list - LIST(I)) |
|
Returns the list of Integer thats different between two Integer lists. |
|
Parameters : |
|
First list - LIST(I) |
Specify first list of integer |
Second list - LIST(I) |
Specify second list of integer |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.diff( [ 1 , 1 ], [ 1 , 2 ] ) = [ 1 , 2 ] |
|
int.list.diff( [ 1 , null ], [ 1 , 1 ] ) = [ null , 1 ] |
|
int.list.diff( [ 1 , null , 1 ], [ 1 , null ] ) = [ 1 ] |
int.list.distinct
int.list.distinct(List - LIST(I)) |
|
Returns distinct values (unique values) from a list of Integer. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.distinct( [ 1 , 1 ] ) = [ 1 ] |
|
int.list.distinct( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 4 , 2 , 3 ] |
|
int.list.distinct( [ 1 , null , null ] ) = [ 1 , null ] |
int.list.except
int.list.except(First list - LIST(I), Second list - LIST(I)) |
|
Returns the Integer list, from the first list that are not in the second list. |
|
Parameters : |
|
First list - LIST(I) |
Specify first list of integer |
Second list - LIST(I) |
Specify second list of integer |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.except( [ 1 , 2 , 3 , 4 , 5 , 3 ], [ 1 , 2 , 4 , 5 , 1 , 3 ] ) = [ ] |
|
int.list.except( [ 1 , null , 3 ], [ 1 , 2 ] ) = [ null , 3 ] |
|
int.list.except( [ 4 ], [ 1 , 2 , null ] ) = [ 4 ] |
int.list.flat
int.list.flat(List - LIST(I)) |
|
Transforms an array of arrays into a single array. |
|
Parameters : |
|
List - LIST(I) |
Specify list of lists to process |
Return : LIST(I) |
|
|
int.list.get
int.list.get(List - LIST(I), Index - I) |
|
Extract an Integer in a list by specifying index (the first element of the list at index 0) |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Index - I |
Specify index to extract from list |
Return : I |
|
|
|
Examples : |
|
int.list.get( [ 1 , 2 , 3 , 4 ], 3 ) = 4 |
|
int.list.get( [ 1 , 2 ], 5 ) = null |
|
int.list.get( [ 1 , null , 1 ], 1 ) = null |
int.list.insert
int.list.insert(List - LIST(I), Position - I, Value - I) |
|
Inserts an Integer into a list of Integer values at the specified position (numbered from 1 and from right to left if negative). Adds null values if necessary to reach the desired position and returns the new, modified list. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integers to process |
Position - I |
Specify the insertion position in list |
Value - I |
Specify the Integer to insert in the list |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.insert( [ 1 , 1 ], 1, 5 ) = [ 5 , 1 , 1 ] |
|
int.list.insert( [ 1 ], 3, 4 ) = [ 1 , null , 4 ] |
int.list.intersect
int.list.intersect(First list - LIST(I), Second list - LIST(I)) |
|
Returns the list of Integer in common between two Integer lists (can contain the same value several times). |
|
Parameters : |
|
First list - LIST(I) |
Specify first list of integer |
Second list - LIST(I) |
Specify second list of integer |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.intersect( [ 1 ], [ 1 , 1 ] ) = [ 1 ] |
|
int.list.intersect( [ 5 ], [ 5 , 2 , -3 ] ) = [ 5 ] |
|
int.list.intersect( [ 5 , 0 , null , 2 ], [ 5 , 2 , -3 , null ] ) = [ null , 2 , 5 ] |
int.list.max
int.list.max(List - LIST(I)) |
|
Returns the largest Integer from a list of Integer. Does not take into account null. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : I |
|
|
|
Examples : |
|
int.list.max( [ 1 , 4 , 2 , 3 ] ) = 4 |
|
int.list.max( [ 1 , null ] ) = 1 |
|
int.list.max( [ null , null ] ) = null |
int.list.max_occur
int.list.max_occur(List - LIST(I)) |
|
Gives the most represented Integer (or a list in egality case). |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.max_occur( [ 1 , 1 , 1 , 1 , 2 ] ) = [ 1 ] |
|
int.list.max_occur( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 2 , 3 , 4 ] |
|
int.list.max_occur( [ 1 , null , null ] ) = [ 1 ] |
int.list.min
int.list.min(List - LIST(I)) |
|
Returns the smallest integer from a list of Integer. Does not take into account null. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : I |
|
|
|
Examples : |
|
int.list.min( [ 1 , 4 , 2 , 3 ] ) = 1 |
|
int.list.min( [ 1 , null ] ) = 1 |
|
int.list.min( [ null , null ] ) = null |
int.list.min_occur
int.list.min_occur(List - LIST(I)) |
|
Gives the least represented number in a list of Integer (or a list in egality case). |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.min_occur( [ 1 , 1 , 1 , 1 , 2 ] ) = [ 2 ] |
|
int.list.min_occur( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 2 , 3 , 4 ] |
|
int.list.min_occur( [ 1 , null , null ] ) = [ 1 ] |
int.list.position
int.list.position(List - LIST(I), Value - I) |
|
Returns the position in the list of the value of argument 2. Returns -1 if argument 2 is absent. The first element in the list has position 0 |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Value - I |
Integer to search in the list |
Return : I |
|
|
|
Examples : |
|
int.list.position( [ 1 , 1 ], 1 ) = 0 |
|
int.list.position( [ 1 , 2 , 3 , 4 ], 5 ) = -1 |
|
int.list.position( [ 1 , 2 , 3 , 4 , 5 ], 4 ) = 3 |
|
int.list.position( [ 1 , null ], null ) = 1 |
int.list.remove
int.list.remove(List - LIST(I), Value - I) |
|
Removes all occurrences of an Integer in a list of Integers. |
|
Parameters : |
|
List - LIST(I) |
Specify list to process |
Value - I |
Value to remove |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.remove( [ 1 , 2 , 2 , 3 , 2 ], 2 ) = [ 1 , 3 ] |
|
int.list.remove( [ null , 99 , null , 0 ], null ) = [ 99 , 0 ] |
|
int.list.remove( [ null , 1 , 1 , 0 ], 10 ) = [ null , 1 , 1 , 0 ] |
|
int.list.remove( [ ], 1 ) = [ ] |
int.list.remove_extend
int.list.remove_extend(List - LIST(I), List - ARGS(I)) |
|
Removes all occurrences of multiple Integers in a List of Integers. |
|
Parameters : |
|
List - LIST(I) |
Specify list to process |
List - ARGS(I) |
Specify list of values to remove |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.remove_extend( [ 4 , 1 , 2 , 2 , 3 , 2 ], [ 2 , 4 , 6 ] ) = [ 1 , 3 ] |
|
int.list.remove_extend( [ null , 99 , null , 0 ], [ null , -5 ] ) = [ 99 , 0 ] |
|
int.list.remove_extend( [ null , 1 , 1 , 0 ], [ 0 ] ) = [ null , 1 , 1 ] |
|
int.list.remove_extend( [ ], [ 1 ] ) = [ ] |
int.list.replace
int.list.replace(List - LIST(I), Number - I, Number - I) |
|
Replaces all occurrences of an Integer in a list of Integers. |
|
Parameters : |
|
List - LIST(I) |
Specify list to process |
Number - I |
Value to replace |
Number - I |
Replacement value |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.replace( [ 1 , 2 , 2 , 3 , -2 ], 2, -2 ) = [ 1 , -2 , -2 , 3 , -2 ] |
|
int.list.replace( [ null , 1 , null , 2 ], null, 0 ) = [ 0 , 1 , 0 , 2 ] |
|
int.list.replace( [ null , 1 , 2 , 0 ], 0, null ) = [ null , 1 , 2 , null ] |
|
int.list.replace( [ ], 1, -1 ) = [ ] |
int.list.replace_extend
int.list.replace_extend(List - LIST(I), List - ARGS(I), List - ARGS(I)) |
|
Replaces all occurrences of multiple Integers in a list of Integers. All replacements are done simultaneously. The correspondence between the value to be replaced and the replacement value is done according to the index of the values in the parameter list. If the same value appears multiple times among the values to be replaced, it will always be replaced by the replacement value associated with its first occurrence in the list. |
|
Parameters : |
|
List - LIST(I) |
Specify list to process |
List - ARGS(I) |
Specify list of values to replace |
List - ARGS(I) |
Specify list of replacement values |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.replace_extend( [ 1 , 2 , 3 , 3 , -2 ], [ 2 , 3 , 99 ], [ -2 , -3 , -99 ] ) = [ 1 , -2 , -3 , -3 , -2 ] |
|
int.list.replace_extend( [ 1 , 2 , 3 , 3 , -2 ], [ 2 , 2 , 2 ], [ -2 , -3 , -99 ] ) = [ 1 , -2 , 3 , 3 , -2 ] |
|
int.list.replace_extend( [ 1 , 2 , 3 ], [ 2 , 20 , 200 ], [ -2 ] ) = [ 1 , 2 , 3 ] |
|
int.list.replace_extend( [ null , 1 , 1 , 0 ], [ ], [ ] ) = [ null , 1 , 1 , 0 ] |
|
int.list.replace_extend( [ ], [ 1 ], [ -1 ] ) = [ ] |
int.list.sort
int.list.sort(List - LIST(I)) |
|
Realises ascending sorting of a list of Integer |
|
Parameters : |
|
List - LIST(I) |
Specify list to sort |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.sort( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 2 , 3 , 4 ] |
|
int.list.sort( [ 1 , null ] ) = [ null , 1 ] |
int.list.sum
int.list.sum(List - LIST(I)) |
|
Returns sum of a list of Integer. |
|
Parameters : |
|
List - LIST(I) |
Specify list to add |
Return : I |
|
|
|
Examples : |
|
int.list.sum( [ 1 , 4 , 2 , 3 ] ) = 10 |
|
int.list.sum( [ 1 , null ] ) = 1 |
int.list.to_bigint
int.list.to_bigint(List - LIST(I)) |
|
Transforms a list of Integer into a list of Big integer. |
|
Parameters : |
|
List - LIST(I) |
Specify list of integer to process |
Return : LIST(B.I) |
|
|
|
Examples : |
|
int.list.to_bigint( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 4 , 2 , 3 ] |
int.list.to_dec
int.list.to_dec(List - LIST(I)) |
|
Transforms a list of Integer into a list of Decimals. |
|
Parameters : |
|
List - LIST(I) |
Specify list to process |
Return : LIST(De) |
|
|
|
Examples : |
|
int.list.to_dec( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 4 , 2 , 3 ] |
int.list.to_str
int.list.to_str(List - LIST(I)) |
|
Transforms a list of Integer into a list of String. |
|
Parameters : |
|
List - LIST(I) |
Specify list to process |
Return : LIST(S) |
|
|
|
Examples : |
|
int.list.to_str( [ 1 , 4 , 2 , 3 ] ) = [ "1" , "4" , "2" , "3" ] |
int.list.union
int.list.union(First list - LIST(I), Second list - LIST(I)) |
|
Union of two lists of Integer. |
|
Parameters : |
|
First list - LIST(I) |
Specify first list of integer |
Second list - LIST(I) |
Specify second list of integer |
Return : LIST(I) |
|
|
|
Examples : |
|
int.list.union( [ 5 ], [ 5 , 2 , -3 ] ) = [ 5 , 5 , 2 , -3 ] |
|
int.list.union( [ 1 , null ], [ null ] ) = [ 1 , null , null ] |
int.max
int.max(List - ARGS(I)) |
|
Returns the maximum value of a list of Integers. |
|
Parameters : |
|
List - ARGS(I) |
Specify list to process |
Return : I |
|
|
|
Examples : |
|
int.max( [ 1 , 33 , 1 ] ) = 33 |
int.min
int.min(List - ARGS(I)) |
|
Returns the minimum value of a list of Integers. |
|
Parameters : |
|
List - ARGS(I) |
Specify list to process |
Return : I |
|
|
|
Examples : |
|
int.min( [ 1 , 33 , 1 ] ) = 1 |
int.mult
int.mult(List - ARGS(I)) |
|
Returns the multiplication of all elements of a list of Integers. |
|
Parameters : |
|
List - ARGS(I) |
Specify list to process |
Return : I |
|
|
|
Examples : |
|
int.mult( [ 1 , 4 , 2 , 3 ] ) = 24 |
|
int.mult( [ 1 , null ] ) = null |
int.replace_null
int.replace_null(Value - I, Number replacing Null - I) |
|
Replaces Null values by an Integer. |
|
Parameters : |
|
Value - I |
Specify value to process |
Number replacing Null - I |
Specify integer that replaces Null value |
Return : I |
|
|
|
Examples : |
|
int.replace_null( -1, -1 ) = -1 |
|
int.replace_null( null, 1 ) = 1 |
int.sum
int.sum(List - ARGS(I)) |
|
Returns the sum of a list of Integers |
|
Parameters : |
|
List - ARGS(I) |
Specify list to process |
Return : I |
|
|
|
Examples : |
|
int.sum( [ 1 , 4 , 2 , 3 ] ) = 10 |
|
int.sum( [ 1 , null ] ) = null |
int.to_bigint
int.to_bigint(Value - I) |
|
Transforms an Integer into a Big Integer. |
|
Parameters : |
|
Value - I |
Specify integer to transform |
Return : B.I |
|
|
|
Examples : |
|
int.to_bigint( -1 ) = -1 |
int.to_bool
int.to_bool(Value - I) |
|
Transform an Integer into a Boolean. |
|
Parameters : |
|
Value - I |
Specify integer to transform |
Return : B |
|
|
|
Examples : |
|
int.to_bool( 1 ) = true |
|
int.to_bool( -1 ) = null |
|
int.to_bool( 0 ) = false |
int.to_date
int.to_date(Value - I) |
|
Transform an Integer into a Date. |
|
Parameters : |
|
Value - I |
Specify value to transform |
Return : Da |
|
|
|
Examples : |
|
int.to_date( 0 ) = 1970-01-01T00:00:00.0Z |
|
int.to_date( null ) = null |
Formulas for Big Integer numbers
bigint.abs
bigint.abs(Value - I,B.I) |
|
Returns absolute value of a number. |
|
Parameters : |
|
Value - I,B.I |
Input the number for which we are looking for absolute value |
Return : B.I |
|
|
|
Examples : |
|
bigint.abs( 2 ) = 2 |
|
bigint.abs( -1 ) = 1 |
|
bigint.abs( null ) = null |
bigint.create
bigint.create(Value - I,B.I) |
|
Create a Big Integer from an entered value. |
|
Parameters : |
|
Value - I,B.I |
Specify a value |
Return : B.I |
|
|
|
Examples : |
|
bigint.create( 10 ) = 10 |
|
bigint.create( -2 ) = -2 |
|
bigint.create( null ) = null |
bigint.diff
bigint.diff(List - ARGS(I,B.I)) |
|
Returns the difference between all elements of a list of BigIntegers. |
|
Parameters : |
|
List - ARGS(I,B.I) |
Specify list to process |
Return : B.I |
|
|
|
Examples : |
|
bigint.diff( [ 1 , 4 , 2 , 3 ] ) = -8 |
|
bigint.diff( [ 1 , null ] ) = null |
bigint.factorial
bigint.factorial(Value - I,B.I) |
|
Returns Factorial of a value. |
|
Parameters : |
|
Value - I,B.I |
Specify value to process |
Return : B.I |
|
|
|
Examples : |
|
bigint.factorial( 4 ) = 24 |
|
bigint.factorial( null ) = null |
bigint.generate
bigint.generate(Increment - I,B.I, Start - I,B.I, End - I,B.I) |
|
Generates a list of Big Integer from start number by adding increment until value is less or equal (or greater or equal) than end number, depending on the increment sign. |
|
Parameters : |
|
Increment - I,B.I |
Input the value of the increment |
Start - I,B.I |
Specify the increment start number |
End - I,B.I |
Specify the end number of increment |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.generate( 2, 0, 4 ) = [ 0 , 2 , 4 ] |
|
bigint.generate( -1, 2, -1 ) = [ 2 , 1 , 0 , -1 ] |
|
bigint.generate( 3, 0, 10 ) = [ 0 , 3 , 6 , 9 ] |
|
bigint.generate( -3, 5, -2 ) = [ 5 , 2 , -1 ] |
|
bigint.generate( null, 1, 2 ) = [ ] |
bigint.if
bigint.if(Rule - B, Value if true - I,B.I, Value if false - I,B.I) |
|
Checks if condition is met and returns a Big Integer if result of the condition you specified is True, and an another Big Integer if result is False. |
|
Parameters : |
|
Rule - B |
Specify condition to process |
Value if true - I,B.I |
Returned value if test is true |
Value if false - I,B.I |
Returned value if test is false |
Return : B.I |
|
|
bigint.list.as_str
bigint.list.as_str(List - LIST(I,B.I)) |
|
Transforms a list into a String. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : S |
|
|
|
Examples : |
|
bigint.list.as_str( [ 1 , 4 , 2 , 3 ] ) = "[1, 4, 2, 3]" |
|
bigint.list.as_str( [ ] ) = null |
bigint.list.compact
bigint.list.compact(List - LIST(I,B.I)) |
|
Removes Null values from the list. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.compact( [ 1 , 2 , 3 ] ) = [ 1 , 2 , 3 ] |
|
bigint.list.compact( [ null , 5 , null ] ) = [ 5 ] |
bigint.list.contains
bigint.list.contains(List - LIST(I,B.I), Number - I,B.I) |
|
Checks if searched number is present in the list. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Number - I,B.I |
Number to search list |
Return : B |
|
|
|
Examples : |
|
bigint.list.contains( [ 1 , 2 ], 1 ) = true |
|
bigint.list.contains( [ 1 , 2 , 3 ], -3 ) = false |
|
bigint.list.contains( [ null , 5 ], null ) = true |
bigint.list.count.distinct
bigint.list.count.distinct(List - LIST(I,B.I)) |
|
Returns a list of key value containing the distinct values and their occurrence in the list without taking into account null value. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : LIST(S) |
|
|
|
Examples : |
|
bigint.list.count.distinct( [ 1 , 2 , 1 ] ) = [{"value":2,"count":1},{"value":1,"count":2}] |
|
bigint.list.count.distinct( [ null , null , 1 ] ) = [{"value":1,"count":1}] |
bigint.list.create
bigint.list.create(Values - ARGS(I,B.I)) |
|
Creation of a list of number. |
|
Parameters : |
|
Values - ARGS(I,B.I) |
Input a number to add (the ARGS function allows you to add n arguments) |
Return : LIST(B.I) |
|
|
bigint.list.diff
bigint.list.diff(First list - LIST(I,B.I), Second list - LIST(I,B.I)) |
|
Returns the list of number thats different between two Big Integer lists. |
|
Parameters : |
|
First list - LIST(I,B.I) |
Specify first list of number |
Second list - LIST(I,B.I) |
Specify second list of number |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.diff( [ 1 , 2 ], [ 1 , 5 , 2 ] ) = [ 5 ] |
|
bigint.list.diff( [ 1 , null ], [ 1 ] ) = [ null ] |
bigint.list.distinct
bigint.list.distinct(List - LIST(I,B.I)) |
|
Returns a list containing distinct values (unique values) of the entered list. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.distinct( [ 1 , 1 , 1 , 1 ] ) = [ 1 ] |
|
bigint.list.distinct( [ 1 , 1 , null , null ] ) = [ 1 , null ] |
bigint.list.except
bigint.list.except(First list - LIST(I,B.I), Second list - LIST(I,B.I)) |
|
Returns the list of number, from the first list that are not in the second list. |
|
Parameters : |
|
First list - LIST(I,B.I) |
Specify first list of number |
Second list - LIST(I,B.I) |
Specify second list of number |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.except( [ 1 , 4 ], [ 1 , 2 , 3 ] ) = [ 4 ] |
|
bigint.list.except( [ 1 , null , 3 ], [ 1 , null ] ) = [ 3 ] |
bigint.list.flat
bigint.list.flat(List - LIST(I,B.I)) |
|
Transforms an array of arrays into a single array. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list of lists to process |
Return : LIST(B.I) |
|
|
bigint.list.get
bigint.list.get(List - LIST(I,B.I), Index - I) |
|
Extract a number in a list by specifying index (the first element of the list at index 0) |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Index - I |
Specify index to extract from list |
Return : B.I |
|
|
|
Examples : |
|
bigint.list.get( [ 1 , 2 , 3 , 5 ], 0 ) = 1 |
|
bigint.list.get( [ 1 , 1 ], 5 ) = null |
bigint.list.insert
bigint.list.insert(List - LIST(I,B.I), Position - I, Value - I,B.I) |
|
Inserts an element in a list of Large Integer strings at the specified position (numbered from 1 and from right to left if negative). Adds null values if necessary to reach the desired position, and returns the new modified list. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Position - I |
Specify the insertion position in the list of numbers |
Value - I,B.I |
Specify the value to insert in the list |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.insert( [ 1 , 1 ], 1, 5 ) = [ 5 , 1 , 1 ] |
|
bigint.list.insert( [ 1 ], 3, 4 ) = [ 1 , null , 4 ] |
bigint.list.intersect
bigint.list.intersect(First list - LIST(I,B.I), Second list - LIST(I,B.I)) |
|
Returns the list of numbers in common between two number lists (can contain the same value several times). |
|
Parameters : |
|
First list - LIST(I,B.I) |
Specify first list of number |
Second list - LIST(I,B.I) |
Specify second list of number |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.intersect( [ 5 ], [ 5 , 2 , -3 ] ) = [ 5 ] |
|
bigint.list.intersect( [ 5 , 0 , null , 2 ], [ 5 , 2 , -3 , null ] ) = [ null , 2 , 5 ] |
bigint.list.max
bigint.list.max(List - LIST(I,B.I)) |
|
Returns the largest number in a list of numbers. Does not take into account null. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : B.I |
|
|
|
Examples : |
|
bigint.list.max( [ 1 , 1 ] ) = 1 |
|
bigint.list.max( [ 1 , 4 , 2 , 3 ] ) = 4 |
bigint.list.max_occur
bigint.list.max_occur(List - LIST(I,B.I)) |
|
Gives the most represented number in the list (or a list in egality case). |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.max_occur( [ 1 , 1 , 1 , 1 , 2 ] ) = [ 1 ] |
|
bigint.list.max_occur( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 2 , 3 , 4 ] |
bigint.list.min
bigint.list.min(List - LIST(I,B.I)) |
|
Returns the smallest number in the list. Does not take into account null. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : B.I |
|
|
|
Examples : |
|
bigint.list.min( [ 1 , 1 ] ) = 1 |
|
bigint.list.min( [ 1 , 4 , 2 , 3 ] ) = 1 |
bigint.list.min_occur
bigint.list.min_occur(List - LIST(I,B.I)) |
|
Gives the least represented number (or a list in egality case). |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.min_occur( [ 1 , 1 , 1 , 1 , 2 ] ) = [ 2 ] |
|
bigint.list.min_occur( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 2 , 3 , 4 ] |
bigint.list.position
bigint.list.position(List - LIST(I,B.I), Value - I,B.I) |
|
Returns the position in the list of the value of argument 2. Returns -1 if argument 2 is absent. The first element in the list has position 0 |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Value - I,B.I |
Number to search in the list |
Return : I |
|
|
|
Examples : |
|
bigint.list.position( [ 1 , 2 , 3 , 4 ], 5 ) = -1 |
|
bigint.list.position( [ 1 , 2 , 3 , 4 , 5 ], 4 ) = 3 |
|
bigint.list.position( [ 1 , null ], null ) = 1 |
bigint.list.remove
bigint.list.remove(List - LIST(B.I,I), Value - B.I,I) |
|
Removes all occurrences of a Big Integer in a list of Big Integers. |
|
Parameters : |
|
List - LIST(B.I,I) |
Specify list to process |
Value - B.I,I |
Value to remove |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.remove( [ 1 , 2 , 2 , 3 , 2 ], 2 ) = [ 1 , 3 ] |
|
bigint.list.remove( [ null , 99 , null , 0 ], null ) = [ 99 , 0 ] |
|
bigint.list.remove( [ null , 1 , 1 , 0 ], 0 ) = [ null , 1 , 1 ] |
|
bigint.list.remove( [ ], 1 ) = [ ] |
bigint.list.remove_extend
bigint.list.remove_extend(List - LIST(B.I,I), List - ARGS(B.I,I)) |
|
Removes all occurrences of multiple Big Integers in a List of Big Integers. |
|
Parameters : |
|
List - LIST(B.I,I) |
Specify list to process |
List - ARGS(B.I,I) |
Specify list of values to remove |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.remove_extend( [ 1 , 2 , 2 , 3 , 2 ], [ 2 , 99 ] ) = [ 1 , 3 ] |
|
bigint.list.remove_extend( [ null , 99 , null , 0 ], [ null ] ) = [ 99 , 0 ] |
|
bigint.list.remove_extend( [ null , 1 , 1 , 0 ], [ 0 ] ) = [ null , 1 , 1 ] |
|
bigint.list.remove_extend( [ ], [ 1 ] ) = [ ] |
bigint.list.replace
bigint.list.replace(List - LIST(B.I,I), Number - B.I,I, Number - B.I,I) |
|
Replaces all occurrences of a Big Integer in a list of Big Integers. |
|
Parameters : |
|
List - LIST(B.I,I) |
Specify list to process |
Number - B.I,I |
Value to replace |
Number - B.I,I |
Replacement value |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.replace( [ 13 , 29 , 21 , 3 , 21 ], 21, 99 ) = [ 13 , 29 , 99 , 3 , 99 ] |
|
bigint.list.replace( [ null , 99 , null , 5 ], null, 123 ) = [ 123 , 99 , 123 , 5 ] |
|
bigint.list.replace( [ null , 1 , 1 , 0 ], 0, null ) = [ null , 1 , 1 , null ] |
|
bigint.list.replace( [ ], 1, 1 ) = [ ] |
bigint.list.replace_extend
bigint.list.replace_extend(List - LIST(B.I,I), List - ARGS(B.I,I), List - ARGS(B.I,I)) |
|
Replaces all occurrences of multiple Big Integers in a list of Big Integers. All replacements are done simultaneously. The correspondence between the value to be replaced and the replacement value is done according to the index of the values in the parameter list. If the same value appears multiple times among the values to be replaced, it will always be replaced by the replacement value associated with its first occurrence in the list. |
|
Parameters : |
|
List - LIST(B.I,I) |
Specify list to process |
List - ARGS(B.I,I) |
Specify list of values to replace |
List - ARGS(B.I,I) |
Specify list of replacement values |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.replace_extend( [ 1 , 2 , 3 , 3 , 20 ], [ 20 , 3 , 99 ], [ -20 , -3 , 100 ] ) = [ 1 , 2 , -3 , -3 , -20 ] |
|
bigint.list.replace_extend( [ 1 , 2 , 3 ], [ 2 , 20 , 200 ], [ -2 ] ) = [ 1 , 2 , 3 ] |
|
bigint.list.replace_extend( [ null , 1 , 1 , 0 ], [ ], [ ] ) = [ null , 1 , 1 , 0 ] |
|
bigint.list.replace_extend( [ ], [ 1 ], [ 1 ] ) = [ ] |
bigint.list.sort
bigint.list.sort(List - LIST(I,B.I)) |
|
Sort ascending list of numbers. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to sort |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.sort( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 2 , 3 , 4 ] |
|
bigint.list.sort( [ -1 , null ] ) = [ null , -1 ] |
bigint.list.sum
bigint.list.sum(List - LIST(I,B.I)) |
|
Returns sum of a list of number. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to add |
Return : B.I |
|
|
|
Examples : |
|
bigint.list.sum( [ 1 , 4 , 2 , 3 ] ) = 10 |
|
bigint.list.sum( [ 1 , null ] ) = 1 |
bigint.list.to_dec
bigint.list.to_dec(List - LIST(I,B.I)) |
|
Transforms a list of number into a list of Decimal. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : LIST(De) |
|
|
|
Examples : |
|
bigint.list.to_dec( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 4 , 2 , 3 ] |
bigint.list.to_int
bigint.list.to_int(List - LIST(I,B.I)) |
|
Transforms a list of number into a list of Integer. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : LIST(I) |
|
|
|
Examples : |
|
bigint.list.to_int( [ 1 , 4 , 2 , 3 ] ) = [ 1 , 4 , 2 , 3 ] |
bigint.list.to_str
bigint.list.to_str(List - LIST(I,B.I)) |
|
Transforms a list of number into a list of String. |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Return : LIST(S) |
|
|
|
Examples : |
|
bigint.list.to_str( [ 1 , 4 , 2 , 3 ] ) = [ "1" , "4" , "2" , "3" ] |
bigint.list.union
bigint.list.union(First list - LIST(I,B.I), Second list - LIST(I,B.I)) |
|
Union of two number lists. |
|
Parameters : |
|
First list - LIST(I,B.I) |
Specify first list of number |
Second list - LIST(I,B.I) |
Specify second list of number |
Return : LIST(B.I) |
|
|
|
Examples : |
|
bigint.list.union( [ 1 , 2 , 3 ], [ 4 , 5 ] ) = [ 1 , 2 , 3 , 4 , 5 ] |
|
bigint.list.union( [ 1 , -1 , 1 ], [ null ] ) = [ 1 , -1 , 1 , null ] |
bigint.max
bigint.max(List - ARGS(I,B.I)) |
|
Returns the maximum value of a list of BigIntegers. |
|
Parameters : |
|
List - ARGS(I,B.I) |
Specify list to process |
Return : B.I |
|
|
|
Examples : |
|
bigint.max( [ 1 , 33 , 1 ] ) = 33 |
bigint.min
bigint.min(List - ARGS(I,B.I)) |
|
Returns the minimum value of a list of BigIntegers. |
|
Parameters : |
|
List - ARGS(I,B.I) |
Specify list to process |
Return : B.I |
|
|
|
Examples : |
|
bigint.min( [ 1 , 33 , 1 ] ) = 1 |
bigint.mult
bigint.mult(List - ARGS(I,B.I)) |
|
Returns the multiplication of all elements of a list of BigIntegers. |
|
Parameters : |
|
List - ARGS(I,B.I) |
Specify list to process |
Return : B.I |
|
|
|
Examples : |
|
bigint.mult( [ 1 , 4 , 2 , 3 ] ) = 24 |
|
bigint.mult( [ 1 , null ] ) = null |
bigint.replace_null
bigint.replace_null(Value - I,B.I, Number replacing Null - I,B.I) |
|
Replaces Null values by a Big Integer. |
|
Parameters : |
|
Value - I,B.I |
Specify value to process |
Number replacing Null - I,B.I |
Specify number that replaces Null value |
Return : B.I |
|
|
|
Examples : |
|
bigint.replace_null( 1, -1 ) = 1 |
|
bigint.replace_null( null, 1 ) = 1 |
bigint.sum
bigint.sum(List - ARGS(I,B.I)) |
|
Returns the sum of a list of BigIntegers. |
|
Parameters : |
|
List - ARGS(I,B.I) |
Specify list to process |
Return : B.I |
|
|
|
Examples : |
|
bigint.sum( [ 1 , 4 , 2 , 3 ] ) = 10 |
|
bigint.sum( [ 1 , null ] ) = null |
bigint.to_bool
bigint.to_bool(Value - I,B.I) |
|
Transform un nombre into a Boolean. |
|
Parameters : |
|
Value - I,B.I |
Specify value to transform |
Return : B |
|
|
|
Examples : |
|
bigint.to_bool( 1 ) = true |
|
bigint.to_bool( -1 ) = null |
|
bigint.to_bool( 0 ) = false |
|
bigint.to_bool( 10 ) = null |
bigint.to_date
bigint.to_date(Value - I,B.I) |
|
Transform un nombre into a Date. |
|
Parameters : |
|
Value - I,B.I |
Specify value to transform |
Return : Da |
|
|
|
Examples : |
|
bigint.to_date( 0 ) = 1970-01-01T00:00:00.0Z |
|
bigint.to_date( null ) = null |
bigint.to_dec
bigint.to_dec(Value - I,B.I) |
|
Transforms a number into a Decimal. |
|
Parameters : |
|
Value - I,B.I |
Specify value to transform |
Return : De |
|
|
|
Examples : |
|
bigint.to_dec( 1 ) = 1 |
|
bigint.to_dec( -1 ) = -1 |
|
bigint.to_dec( null ) = null |
bigint.to_int
bigint.to_int(Value - I,B.I) |
|
Transforms a number into an Integer. |
|
Parameters : |
|
Value - I,B.I |
Specify value to transform |
Return : I |
|
|
|
Examples : |
|
bigint.to_int( 1 ) = 1 |
|
bigint.to_int( -1 ) = -1 |
|
bigint.to_int( null ) = null |
bigint.to_str
bigint.to_str(Value - I,B.I) |
|
Transforme a number into a String. |
|
Parameters : |
|
Value - I,B.I |
Specify value to transform |
Return : S |
|
|
|
Examples : |
|
bigint.to_str( 1 ) = "1" |
|
bigint.to_str( -1 ) = "-1" |
|
bigint.to_str( null ) = null |
Formulas for the Character String type
str.abrev
str.abrev(Value - S, Offset - I,B.I, Length - I,B.I) |
|
Abbreviates a string by adding ellipses (“…”) to indicate that it has been truncated. It takes three parameters: the string to be abbreviated, an offset and a target length for the result (including any ellipses). |
|
Parameters : |
|
Value - S |
Specify the string to abbreviate |
Offset - I,B.I |
Specify the left edge offset index. The corresponding character will not necessarily be the leftmost character in the result or the first character following the ellipses, but it will always appear in the result. The starting index is 0 |
Length - I,B.I |
Specify the length of the returned String (including any added ellipses). Minimum value is 4, and for an offset greater than 5 the minimum value is 7 |
Return : S |
|
|
|
Examples : |
|
str.abrev( "DataChain brings data back at the core of your business", 2, 50 ) = "DataChain brings data back at the core of your …" |
|
str.abrev( "DataChain brings data back at the core of your business", 8, 50 ) = "…n brings data back at the core of your business" |
|
str.abrev( "DataChain brings data back at the core of your business", 4, 12 ) = "DataChain…" |
|
str.abrev( "DataChain brings data back at the core of your business", 10, 17 ) = "…brings data…" |
str.capitalize
str.capitalize(Value - S) |
|
Uppercases first character of a String and lowercases others characters. |
|
Parameters : |
|
Value - S |
Specify string to process |
Return : S |
|
|
|
Examples : |
|
str.capitalize( "datachain" ) = "Datachain" |
|
str.capitalize( "*data" ) = "*data" |
|
str.capitalize( null ) = null |
str.complete
str.complete(Value - S, Characters to add - S, Final length - I,B.I, Type of complement - CHOICE(S)) |
|
Completes String with characters provided as input. |
|
Parameters : |
|
Value - S |
Argument storing the string whose extension is desired |
Characters to add - S |
Characters used for complement |
Final length - I,B.I |
Final length of value once complement is added |
Type of complement - CHOICE(S) |
Specify whether complement is to left or to right of value |
Return : S |
|
|
|
Examples : |
|
str.complete( "data", "", 9, "RIGHT" ) = "data" |
|
str.complete( "data", ".", 9, "RIGHT" ) = "data.." |
|
str.complete( "data", "*", 3, "RIGHT" ) = "data" |
str.concat
str.concat(Value - ARGS(S)) |
|
Concatenates list of String into a single String. |
|
Parameters : |
|
Value - ARGS(S) |
Specify list of Strings to be concatenated (n possible by clicking on the ARGS argument) |
Return : S |
|
|
|
Examples : |
|
str.concat( [ "Data" , "chain" , "Rocks" ] ) = "DatachainRocks" |
|
str.concat( [ null , null ] ) = "" |
str.contains_only
str.contains_only(Value - S, Group of characters to search - S) |
|
Checks if all the characters in the first String are present in the second String, regardless of the order or frequency of the characters. Returns true if all the characters are present. |
|
Parameters : |
|
Value - S |
Specify string to process |
Group of characters to search - S |
Specify group of characters to search into input string |
Return : B |
|
|
|
Examples : |
|
str.contains_only( "12azer1", "rzea321" ) = true |
|
str.contains_only( "aze45", "4ze" ) = false |
str.create
str.create(Value - S) |
|
Create a String from an entered value. |
|
Parameters : |
|
Value - S |
Specify a value |
Return : S |
|
|
|
Examples : |
|
str.create( "Dupont" ) = "Dupont" |
|
str.create( null ) = null |
str.diff
str.diff(Value - S, Value - S) |
|
Compares two strings by returning the substring of the second string starting with the first character that differs from the first string. |
|
Parameters : |
|
Value - S |
Specify first string to process |
Value - S |
Specify second string to process |
Return : S |
|
|
|
Examples : |
|
str.diff( "aze45", "ze4" ) = "ze4" |
|
str.diff( "aze45", "aze" ) = "" |
|
str.diff( "test", "test" ) = "" |
|
str.diff( "education", "eductesteducationtestation" ) = "testeducationtestation" |
|
str.diff( "", "test" ) = "test" |
|
str.diff( "test", "" ) = "" |
|
str.diff( "aze123", "aze124" ) = "4" |
str.diff_position
str.diff_position(Value - S, Value - S) |
|
Returns position of first difference between two String. |
|
Parameters : |
|
Value - S |
Specify first string to process |
Value - S |
specify second string to process |
Return : I |
|
|
|
Examples : |
|
str.diff_position( "azer", "azert" ) = 4 |
|
str.diff_position( "data", "data" ) = -1 |
|
str.diff_position( "data", "daTa" ) = 2 |
|
str.diff_position( "data", null ) = null |
str.encrypt
str.encrypt(Value - S) |
|
Encrypts a String. |
|
Parameters : |
|
Value - S |
Specify String to encrypt |
Return : S |
|
|
|
Examples : |
|
str.encrypt( "data" ) = "ba238696232b95860d96638d7fe13d6f0e4937c1a1acd47ba3742e3c4c5e0765" |
|
str.encrypt( null ) = null |
str.extract
str.extract(Value - S, Extraction sense - CHOICE(S), Value - I,B.I) |
|
Extracts a certain number of characters from a String based on the specified parameters. |
|
Parameters : |
|
Value - S |
Specify the string to process |
Extraction sense - CHOICE(S) |
Specify the starting point of extraction |
Value - I,B.I |
Number of characters to extract |
Return : S |
|
|
|
Examples : |
|
str.extract( "DupontouDupond", "RIGHT", 7 ) = "uDupond" |
|
str.extract( "Dupont", "LEFT", 2 ) = "Du" |
|
str.extract( null, "LEFT", 8 ) = null |
str.extract_by_index
str.extract_by_index(Value - S, Start position - I, End position - I) |
|
Extract characters group from a String by defining start and end position. |
|
Parameters : |
|
Value - S |
Specify string to process |
Start position - I |
Specify extraction start position |
End position - I |
Specify extraction end position |
Return : S |
|
|
|
Examples : |
|
str.extract_by_index( "azerty", 3, 4 ) = "r" |
|
str.extract_by_index( "aze45", 2, 10 ) = "e45" |
|
str.extract_by_index( null, 2, 3 ) = null |
str.extract_by_regex
str.extract_by_regex(Value - S,De,Da,I,B.I, REGEX - S) |
|
Extract one or several character(s) from a String using a regular expression (Regex). Is case-sensitive. |
|
Parameters : |
|
Value - S,De,Da,I,B.I |
Specify string to process |
REGEX - S |
Specify regular expression (Regex) |
Return : LIST(S) |
|
|
|
Examples : |
|
str.extract_by_regex( "bob:arthur:tof", "(.):(.):(.*)" ) = [ "bob" , "arthur" , "tof" ] |
|
str.extract_by_regex( "GODIN", "(OD+)" ) = [ "OD" ] |
|
str.extract_by_regex( "1/3/23", "[0-9]{1,2}/([0-9]{1,2})/[0-9]" ) = [ "3" ] |
str.extract_by_str
str.extract_by_str(Value - S, Characters - S, Sense - CHOICE(S)) |
|
Extract a String from character(s). Is case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - S |
Specify characters to search |
Sense - CHOICE(S) |
Specify direction of extraction (Left or Right) |
Return : S |
|
|
|
Examples : |
|
str.extract_by_str( "Datachain", "Data", "RIGHT" ) = "chain" |
|
str.extract_by_str( "Datachain", "chain", "LEFT" ) = "Data" |
|
str.extract_by_str( "Datachain", "not", "LEFT" ) = "Datachain" |
|
str.extract_by_str( null, "data", "RIGHT" ) = null |
str.extract_key_value
str.extract_key_value(Value - S, Separator - S, Separator key value - S, Key - S, Operation type - CHOICE(S)) |
|
Extract a value from a key-value String containing n key-values. Is case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Separator - S |
Specify key/value couples separator |
Separator key value - S |
Specify Separator between key and value |
Key - S |
Specify value to extract |
Operation type - CHOICE(S) |
Specify Operation type |
Return : S |
|
|
|
Examples : |
|
str.extract_key_value( "cle1=valeur1|cle2=valeur2|cle3=valeur3", "|", "=", null, "NONE" ) = "{cle2:valeur2, cle3:valeur3, cle1:valeur1}" |
|
str.extract_key_value( "cle1=valeur1|cle2=valeur2|cle24=valeur2|cle3=valeur3", "|", "=", "valeur2", "KEY" ) = "[cle2, cle24]" |
|
str.extract_key_value( "cle1:valeur1/cle2:valeur2/cle3:valeur3", "/", ":", "cle3", "VALUE" ) = "valeur3" |
str.extract_middle
str.extract_middle(Value - S, Start position - I,B.I, Number - I,B.I) |
|
Performs group of characters extraction from the middle of a String by defining start and length of extraction. Start begins at 1. |
|
Parameters : |
|
Value - S |
Specify value to process |
Start position - I,B.I |
Specify an integer defining start of extraction |
Number - I,B.I |
Specify a number defining length of extraction |
Return : S |
|
|
|
Examples : |
|
str.extract_middle( "DupontouDupond", 3, 7 ) = "pontouD" |
|
str.extract_middle( "Dupont", 3, 20 ) = "pont" |
|
str.extract_middle( "Dupont", 0, 3 ) = "Dup" |
str.extract_num
str.extract_num(Value - S) |
|
Extracts numeric characters from a String. |
|
Parameters : |
|
Value - S |
Specify string to process |
Return : S |
|
|
|
Examples : |
|
str.extract_num( "D1upo2nt3" ) = "123" |
|
str.extract_num( null ) = null |
str.find
str.find(Value - S, Character(s) - ARGS(S)) |
|
Returns a Boolean confirming the presence of at least one of the characters to be searched for in a String. Is case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Character(s) - ARGS(S) |
Specify character(s) to search |
Return : B |
|
|
|
Examples : |
|
str.find( "Dupont", [ "d" , "z" ] ) = false |
|
str.find( "Dupont", [ "D" , "u" , "z" ] ) = true |
|
str.find( "Dupont", [ "Dn" ] ) = false |
str.find_all
str.find_all(Value - S, Substrings - ARGS(S)) |
|
Returns a Boolean indicating whether all specified substrings are found exactly as given in the input string. The search is case-sensitive. |
|
Parameters : |
|
Value - S |
Specify the string in which to search |
Substrings - ARGS(S) |
Specify the substrings to search for within the input string |
Return : B |
|
|
|
Examples : |
|
str.find_all( "Dupont", [ "d" , "z" ] ) = false |
|
str.find_all( "Dupont", [ "D" , "u" , "z" ] ) = false |
|
str.find_all( "Dupont", [ "Du" , "p" ] ) = true |
str.find_case
str.find_case(Value - S, Casse - CHOICE(S), Type - CHOICE(S)) |
|
Checks depending on presence of upper or lower case letters. |
|
Parameters : |
|
Value - S |
Specify string to process |
Casse - CHOICE(S) |
Specify processing mode (Lower case - Upper case) |
Type - CHOICE(S) |
Specify type of treatment (Partial - All) |
Return : B |
|
|
|
Examples : |
|
str.find_case( "Dupont", "UPPER", "ALL" ) = false |
|
str.find_case( "DUPONT", "UPPER", "ALL" ) = true |
|
str.find_case( "Dupont", "UPPER", "PARTIAL" ) = true |
|
str.find_case( null, "UPPER", "ALL" ) = false |
str.framing
str.framing(Value - S, Characters - S) |
|
Adds a string at beginning and at end of a String. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - S |
Specify character(s) to be added |
Return : S |
|
|
|
Examples : |
|
str.framing( "Dupont", "D" ) = "DDupontD" |
|
str.framing( "DD", "DD" ) = "DDDDDD" |
str.framing_if_absent
str.framing_if_absent(Value - S, Characters - S) |
|
Adds a string at beginning and end of a String, only if this string is not present at the beginning or at the end. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - S |
Specify character(s) to be added |
Return : S |
|
|
|
Examples : |
|
str.framing_if_absent( "Dupont", "D" ) = "DupontD" |
|
str.framing_if_absent( "Dupont", "t" ) = "tDupont" |
|
str.framing_if_absent( "DD", "DD" ) = "DD" |
str.frequency
str.frequency(Value - S, Characters - S) |
|
Returns number of occurrences of character(s), including spaces and special characters, in a String. Search is case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - S |
Specify character(s) to count |
Return : I |
|
|
|
Examples : |
|
str.frequency( "Dupont", "D" ) = 1 |
|
str.frequency( "Dunpont", "n" ) = 2 |
|
str.frequency( null, null ) = null |
str.if
str.if(Rule - B, Value if true - S, Value if false - S) |
|
Checks if condition is met and returns a String if result of the condition you specified is True, and an another String if result is False. |
|
Parameters : |
|
Rule - B |
Specify condition to process |
Value if true - S |
Returned string if test is true |
Value if false - S |
Returned string if test is false |
Return : S |
|
|
str.if_absent
str.if_absent(Value - S, Suffix - S, List of suffixes - ARGS(S)) |
|
Adds at beginning and at end of String, a group of characters (including spaces and special characters), only if these characters are not present at beginning or at end of this String. Is Case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Suffix - S |
Specify string that will be added as a suffix |
List of suffixes - ARGS(S) |
Specify list of suffixes to search |
Return : S |
|
|
|
Examples : |
|
str.if_absent( "Dupont", "d", [ "u" , "n" ] ) = "Dupontd" |
|
str.if_absent( "Dupont", "d", [ "u" , "t" ] ) = "Dupont" |
str.invers
str.invers(Value - S) |
|
Returns revert input String. Supports special characters, numbers and spaces. |
|
Parameters : |
|
Value - S |
Specify String to invert |
Return : S |
|
|
|
Examples : |
|
str.invers( "Dupont" ) = "tnopuD" |
|
str.invers( null ) = null |
str.is_numeric
str.is_numeric(Value - S) |
|
Checks if a String can be converted to Decimal. |
|
Parameters : |
|
Value - S |
Specify value to process |
Return : B |
|
|
|
Examples : |
|
str.is_numeric( "1.2" ) = true |
|
str.is_numeric( "-123.6e+02" ) = true |
|
str.is_numeric( "123*6" ) = false |
|
str.is_numeric( "NaN" ) = true |
str.join
str.join(List - ARGS(S), Linking Characters - S) |
|
Concatenates elements of a list into a single String, linked by one or more characters (all characters supported). |
|
Parameters : |
|
List - ARGS(S) |
List to process |
Linking Characters - S |
Specify linking characters to use, could be _, -, @, ;, or any characters |
Return : S |
|
|
|
Examples : |
|
str.join( [ "Datachain" , "remet" , "la" , "data" , "au" , "centre" , "du" , "métier" ], " " ) = "Datachain remet la data au centre du métier" |
|
str.join( [ "Data" , "chain" ], null ) = "Datachain" |
str.levenshtein
str.levenshtein(Value - S, Value - S) |
|
Returns Levenshtein score between two Strings (Similarity). The Levenshtein distance is the minimum number of editing operations on a single character (insertions, deletions or substitutions) required to transform one string into the other.Is case-sensitive. |
|
Parameters : |
|
Value - S |
Specify first String to process |
Value - S |
Specify second String to process |
Return : I |
|
|
|
Examples : |
|
str.levenshtein( "Datachain", "Data" ) = 5 |
|
str.levenshtein( "Datachain", "Datachian" ) = 2 |
|
str.levenshtein( "data", "data" ) = 0 |
|
str.levenshtein( "Datachain", null ) = 9 |
str.list.as_str
str.list.as_str(List - LIST(S)) |
|
Transforms a list of String into a String. |
|
Parameters : |
|
List - LIST(S) |
Specify list of string to process |
Return : S |
|
|
|
Examples : |
|
str.list.as_str( [ "a" , "z" , "e" ] ) = "["a", "z", "e"]" |
|
str.list.as_str( [ ] ) = null |
str.list.compact
str.list.compact(List - LIST(S)) |
|
Removes Null values from the list of String. |
|
Parameters : |
|
List - LIST(S) |
Specify list of string to process |
Return : LIST(S) |
|
|
str.list.contains
str.list.contains(List - LIST(S), String - S) |
|
Checks if searched String is present in the list of strings. |
|
Parameters : |
|
List - LIST(S) |
Specify list of string to process |
String - S |
String to search in list of string |
Return : B |
|
|
|
Examples : |
|
str.list.contains( [ "Datachain" , "Maestro" ], "Maestro" ) = true |
|
str.list.contains( [ "Datachain" , "Maestro" , "Dccode" ], "Data" ) = false |
|
str.list.contains( [ null , "Data" ], null ) = true |
str.list.count.distinct
str.list.count.distinct(List - LIST(S)) |
|
Returns a list of key values containing the distinct values and their occurrence in the list of String. |
|
Parameters : |
|
List - LIST(S) |
Specify list of strings to process |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.count.distinct( [ "Data" , "Data" , "Data" , "Datachain" ] ) = [{"value":"Data", "count":3}, {"value":"Datachain", "count":1}] |
|
str.list.count.distinct( null ) = null |
str.list.create
str.list.create(Values - ARGS(S)) |
|
Creation of a list of String. |
|
Parameters : |
|
Values - ARGS(S) |
Input a string (the ARGS function allows you to add n arguments) |
Return : LIST(S) |
|
|
str.list.diff
str.list.diff(First list - LIST(S), Second list - LIST(S)) |
|
Returns the list of Strings that are different between two String lists. |
|
Parameters : |
|
First list - LIST(S) |
Specify first list of strings |
Second list - LIST(S) |
Specify second list of strings |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.diff( [ "Datachain" , "Data" ], [ "Datachain" ] ) = [ "Data" ] |
|
str.list.diff( [ "un" , "deux" ], [ "trois" , "quatre" ] ) = [ "trois" , "quatre" , "un" , "deux" ] |
str.list.distinct
str.list.distinct(List - LIST(S)) |
|
Returns distinct values (unique values) from a list of String |
|
Parameters : |
|
List - LIST(S) |
Specify list of strings to process |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.distinct( [ "Datachain" , "Maestro" , "Maestro" ] ) = [ "Datachain" , "Maestro" ] |
|
str.list.distinct( [ null , null ] ) = [ null ] |
str.list.except
str.list.except(First list - LIST(S), Second list - LIST(S)) |
|
Returns the Sting list, from the first list that are not in the second list. |
|
Parameters : |
|
First list - LIST(S) |
Specify first list of strings |
Second list - LIST(S) |
Specify second list of strings |
Return : LIST(S) |
|
|
str.list.exist_str
str.list.exist_str(Values - S,De,Da,I,B.I, List - LIST(S), Operator - CHOICE(S)) |
|
Search in a String for the existence or non-existence of a list of characters (including spaces and special characters). Is case-sensitive. |
|
Parameters : |
|
Values - S,De,Da,I,B.I |
Specify string to process |
List - LIST(S) |
Specify list of strings |
Operator - CHOICE(S) |
Precise operator |
Return : B |
|
|
|
Examples : |
|
str.list.exist_str( "DataChain brings data back at the core of your business", [ "business" , "lowcode" , "nocode" ], "EXISTS" ) = true |
|
str.list.exist_str( "DataChain brings data back at the core of your business", [ "datachain" , "lowcode" , "nocode" ], "EXISTS" ) = false |
|
str.list.exist_str( "Dupont", [ "t" , "o" ], "NOT_EXIST" ) = false |
|
str.list.exist_str( "DataChain brings data back at the core of your busine$$", [ "$" ], "NOT_EXIST" ) = false |
str.list.flat
str.list.flat(List - LIST(S)) |
|
Transforms an array of arrays into a single array. |
|
Parameters : |
|
List - LIST(S) |
Specify list of lists to process |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.flat( dc.free_list( "array(array("Datas", "are", "important"), array("for", "your", "business", "!!"))" ) ) = [ "Datas" , "are" , "important" , "for" , "your" , "business" , "!!" ] |
str.list.get
str.list.get(List - LIST(S), Index - I,B.I) |
|
Extract a value in a list of string by specifying index. Uses zero-based indexing (first element is at index 0). |
|
Parameters : |
|
List - LIST(S) |
Specify list of strings to process |
Index - I,B.I |
Specify index to extract from list |
Return : S |
|
|
|
Examples : |
|
str.list.get( [ "data" , "lowcode" , "nocode" ], 0 ) = "data" |
|
str.list.get( [ "data" , "lowcode" , "nocode" ], 5 ) = null |
|
str.list.get( [ "data" , null ], 1 ) = null |
str.list.insert
str.list.insert(List - LIST(S), Position - I, Value - S) |
|
Inserts an element into a string list at the specified position (numbered from 1 and from right to left if negative). Adds null values if necessary to reach the desired position, and returns the new, modified list. |
|
Parameters : |
|
List - LIST(S) |
Specify list of string to process |
Position - I |
Specify the insertion position in the list |
Value - S |
Specify the string to insert in the list |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.insert( [ "is" , "nocode" , "and" , "lowcode" ], 1, "Datachain" ) = [ "Datachain" , "is" , "nocode" , "and" , "lowcode" ] |
|
str.list.insert( [ "NAN" , "is" , "not" ], 5, "value" ) = [ "NAN" , "is" , "not" , null , "value" ] |
str.list.intersect
str.list.intersect(First list - LIST(S), Second list - LIST(S)) |
|
Returns the list of String in common between two String lists (can contain the same value several times). |
|
Parameters : |
|
First list - LIST(S) |
Specify first list of strings |
Second list - LIST(S) |
Specify second list of strings |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.intersect( [ "datachain" , "datachain" ], [ "datachain" ] ) = [ "datachain" ] |
|
str.list.intersect( [ "adobis" ], [ "adobis" , "adobis" ] ) = [ "adobis" ] |
|
str.list.intersect( [ "datachain" , null ], [ null ] ) = [ null ] |
str.list.join
str.list.join(List - LIST(S), Separator - S) |
|
Unions all elements of a list into a String, using a given separator (all characters supported). |
|
Parameters : |
|
List - LIST(S) |
List of strings to process |
Separator - S |
Separator to use |
Return : S |
|
|
|
Examples : |
|
str.list.join( [ "Datachain" , "Maestro" ], " and " ) = "Datachain and Maestro" |
|
str.list.join( [ "DataChain" , null ], "!" ) = "DataChain!" |
|
str.list.join( [ "Data" , "Chain" ], null ) = null |
str.list.max
str.list.max(List - LIST(S)) |
|
Returns Maximum string from a list of String. Does not take into account null. |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
Return : S |
|
|
|
Examples : |
|
str.list.max( [ "chain" , "data" , "data" ] ) = "data" |
|
str.list.max( null ) = null |
|
str.list.max( [ "data" , null ] ) = "data" |
str.list.max_occur
str.list.max_occur(List - LIST(S)) |
|
Gives the most represented String (or a list in egality case). |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.max_occur( [ "data" , "data" , "datachain" ] ) = [ "data" ] |
|
str.list.max_occur( [ "data" , "business" , "core" ] ) = [ "core" , "business" , "data" ] |
str.list.merge_by_index
str.list.merge_by_index(Lists - LIST(S)) |
|
Returns a List containing Lists of String for which the Nth list corresponds to the Nth elements of the given lists. If one of the given lists is shorter than the others, replace the missing values with null values. If one of the given lists is null or an empty list, replaces it with a list of length corresponding to the maximum length of the given lists, and whose values are all null. |
|
Parameters : |
|
Lists - LIST(S) |
Input a List of String (the ARGS function allows you to add n arguments) |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.merge_by_index( [ str.list.create( [ "01/01/2021" , "10/09/2023" , "10/09/2023" ] ) , str.list.create( [ "Alex" , "Luc" ] ) , str.list.create( [ "Renaut" , "Dubois" , "Annet" ] ) ] ) = [ "["01/01/2021", "Alex", "Renaut"]" , "["10/09/2023", "Luc", "Dubois"]" , "["10/09/2023", null, "Annet"]" ] |
|
str.list.merge_by_index( [ null , str.list.create( [ "Data" , "Chaine" , "Adobis" ] ) ] ) = [ "[null, "Data"]" , "[null, "Chaine"]" , "[null, "Adobis"]" ] |
|
str.list.merge_by_index( [ null , [ ] , [ ] , null ] ) = [ ] |
str.list.min
str.list.min(List - LIST(S)) |
|
Returns the first String in alphabetical order. Does not take into account null. |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
Return : S |
|
|
|
Examples : |
|
str.list.min( [ "data" , "data" , "chain" ] ) = "chain" |
|
str.list.min( null ) = null |
|
str.list.min( [ "data" , null ] ) = "data" |
str.list.min_occur
str.list.min_occur(List - LIST(S)) |
|
Gives the least represented String in a list of Strings (or a list in egality case). |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.min_occur( [ "data" , "data" , "datachain" ] ) = [ "datachain" ] |
|
str.list.min_occur( [ "data" , "business" , "core" ] ) = [ "core" , "business" , "data" ] |
|
str.list.min_occur( [ "data" , null , null ] ) = [ "data" ] |
str.list.position
str.list.position(List - LIST(S), Value - S) |
|
Returns the position in the list of the value of argument 2. Returns -1 if argument 2 is absent. Uses 0-based indexing (the first element is at position 0). Does not perform a partial search (the value searched for must be present in its entirety in the list). Case-sensitive. |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
Value - S |
String to search in the list |
Return : I |
|
|
|
Examples : |
|
str.list.position( [ "data" , "chain" ], "data" ) = 0 |
|
str.list.position( [ "data" , "chain" ], "core" ) = -1 |
|
str.list.position( [ "data" , null ], null ) = 1 |
str.list.remove
str.list.remove(List - LIST(S), Value - S) |
|
Removes all occurrences of a String in a list of Strings. Case-sensitive. |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
Value - S |
Value to remove |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.remove( [ "Datachain" , "Maestro" , "Maestro" , "Marketplace" ], "Maestro" ) = [ "Datachain" , "Marketplace" ] |
|
str.list.remove( [ "Datachain" , "datachain" , "Maestro" ], "datachain" ) = [ "Datachain" , "Maestro" ] |
|
str.list.remove( [ null , "Datachain" , null , "Datablock" ], null ) = [ "Datachain" , "Datablock" ] |
|
str.list.remove( [ ], "Datachain" ) = [ ] |
str.list.remove_extend
str.list.remove_extend(List - LIST(S), List - ARGS(S)) |
|
Removes all occurrences of multiple Strings in a list of Strings. Case-sensitive. |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
List - ARGS(S) |
Specify list of values to remove |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.remove_extend( [ "Datachain" , "Maestro" , "Maestro" , "Marketplace" ], [ "Datachain" , "Maestro" ] ) = [ "Marketplace" ] |
|
str.list.remove_extend( [ "Datachain" , "datachain" , "Maestro" ], [ "datachain" , "maEsTrO" ] ) = [ "Datachain" , "Maestro" ] |
|
str.list.remove_extend( [ null , "Datachain" , "Maestro" , null , "Datablock" ], [ null , "Datablock" ] ) = [ "Datachain" , "Maestro" ] |
|
str.list.remove_extend( [ ], [ "Datachain" ] ) = [ ] |
str.list.replace
str.list.replace(List - LIST(S), Characters - S, Characters - S) |
|
Replaces all occurrences of a String in a list of Strings. Case-sensitive. |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
Characters - S |
Value to replace |
Characters - S |
Replacement value |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.replace( [ "Datachain" , "Maestro" , "Maestro" , "Marketplace" ], "Maestro", "Datachain" ) = [ "Datachain" , "Datachain" , "Datachain" , "Marketplace" ] |
|
str.list.replace( [ null , "Datachain" , null , "Datablock" ], null, "Projet" ) = [ "Projet" , "Datachain" , "Projet" , "Datablock" ] |
|
str.list.replace( [ null , "Datachain" , null , "Datablock" ], "Datachain", null ) = [ null , null , null , "Datablock" ] |
|
str.list.replace( [ ], "Datachain", "Datablock" ) = [ ] |
str.list.replace_extend
str.list.replace_extend(List - LIST(S), List - ARGS(S), List - ARGS(S)) |
|
Replaces all occurrences of multiple Strings in a list of Strings. All replacements are done simultaneously. The correspondence between the value to be replaced and the replacement value is done according to the index of the values in the parameter list. If the same value appears multiple times among the values to be replaced, it will always be replaced by the replacement value associated with its first occurrence in the list. Case-sensitive. |
|
Parameters : |
|
List - LIST(S) |
Specify list to process |
List - ARGS(S) |
Specify list of values to replace |
List - ARGS(S) |
Specify list of replacement values |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.replace_extend( [ "Datachain" , "Maestro" , "Maestro" , "Marketplace" ], [ "Maestro" , "Marketplace" ], [ "Automatisation" , "Mise à disposition" ] ) = [ "Datachain" , "Automatisation" , "Automatisation" , "Mise à disposition" ] |
|
str.list.replace_extend( [ "Datachain" , "Maestro" ], [ "Maestro" , "Maestro" ], [ "Automatisation" , "Module complémentaire" ] ) = [ "Datachain" , "Automatisation" ] |
|
str.list.replace_extend( [ "Datachain" , "Marketplace" , "Maestro" ], [ "Datachain" , "Maestro" ], [ "Logiciel" ] ) = [ "Datachain" , "Marketplace" , "Maestro" ] |
|
str.list.replace_extend( [ ], [ "Datachain" ], [ "Datablock" ] ) = [ ] |
str.list.sort
str.list.sort(List - LIST(S)) |
|
Sort a list of String in alphabetic order. Preserves duplicate elements in the sorted list. |
|
Parameters : |
|
List - LIST(S) |
Specify list of strings to sort |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.sort( [ "data" , "chain" , "core" ] ) = [ "chain" , "core" , "data" ] |
|
str.list.sort( [ "chain" , null ] ) = [ null , "chain" ] |
str.list.to_bigint
str.list.to_bigint(List - LIST(S)) |
|
Transforms a list of String into a list of Big integers. |
|
Parameters : |
|
List - LIST(S) |
Specify list of strings to process |
Return : LIST(B.I) |
|
|
|
Examples : |
|
str.list.to_bigint( [ "123" , "456" , "789" , "10112" ] ) = [ 123 , 456 , 789 , 10112 ] |
|
str.list.to_bigint( [ "data" , "3.2" , "" , "1234" ] ) = [ null , null , null , 1234 ] |
|
str.list.to_bigint( [ "data" , null ] ) = [ null , null ] |
str.list.to_dec
str.list.to_dec(List - LIST(S)) |
|
Transforms a list of String into a list of Decimals. |
|
Parameters : |
|
List - LIST(S) |
Specify list of strings to process |
Return : LIST(De) |
|
|
|
Examples : |
|
str.list.to_dec( [ "1.2" , "3.2" , "-0.1" , "1234" , "+5678" ] ) = [ 1.2 , 3.2 , -0.1 , 1234 , 5678 ] |
|
str.list.to_dec( [ "data" , "" , null ] ) = [ null , null , null ] |
str.list.to_int
str.list.to_int(List - LIST(S)) |
|
Transforms a list of String into a list of Integers |
|
Parameters : |
|
List - LIST(S) |
Specify list of strings to process |
Return : LIST(I) |
|
|
|
Examples : |
|
str.list.to_int( [ "-1" , "0" , "1" , "2" ] ) = [ -1 , 0 , 1 , 2 ] |
|
str.list.to_int( [ "data" , "" , null ] ) = [ null , null , null ] |
str.list.union
str.list.union(List - LIST(S), List - LIST(S)) |
|
Union of two String lists. The new list first contains the elements of the list assigned to the first argument, then those of the list corresponding to the second argument. |
|
Parameters : |
|
List - LIST(S) |
Specify first list of strings |
List - LIST(S) |
Specify second list of strings |
Return : LIST(S) |
|
|
|
Examples : |
|
str.list.union( [ "data" , "chain" , "brings" ], [ "data" , "to" ] ) = [ "data" , "chain" , "brings" , "data" , "to" ] |
|
str.list.union( [ "data" , null ], [ "chain" ] ) = [ "data" , null , "chain" ] |
str.not_contains
str.not_contains(Value - S, Characters - S) |
|
Verifies that a group of characters (all types of characters) are not in the String. Performs an exact character match, not substring search. Case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - S |
Precise the character(s) to search |
Return : B |
|
|
|
Examples : |
|
str.not_contains( "Datachain", "chain" ) = false |
|
str.not_contains( "Datachain", "eroc" ) = false |
|
str.not_contains( "Datachain", "CR" ) = true |
str.position
str.position(Value - S, Characters - S, Start - I,B.I) |
|
Returns start position of characters group in a String. Case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - S |
Specify character(s) to search (can be a unique character) |
Start - I,B.I |
Search start position in string |
Return : I |
|
|
|
Examples : |
|
str.position( "datachain", "chain", 0 ) = 4 |
|
str.position( "datachain", "data", 1 ) = -1 |
str.remove
str.remove(Value - S, Characters - S) |
|
Deletes all occurrences of characters groups in a String. Case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - S |
Characters to remove |
Return : S |
|
|
|
Examples : |
|
str.remove( "data", "a" ) = "dt" |
|
str.remove( "d.a.t.a", "." ) = "data" |
str.remove_accent
str.remove_accent(Value - S) |
|
Replaces accented characters in a String with non-accented characters. Characters case is preserved. Is case-sensitive |
|
Parameters : |
|
Value - S |
Specify string to process |
Return : S |
|
|
|
Examples : |
|
str.remove_accent( "Dàtàçhàîñ" ) = "Datachain" |
|
str.remove_accent( null ) = null |
str.remove_extend
str.remove_extend(Value - S, Characters - ARGS(S)) |
|
Removes all occurrences of a list of characters in a String. Case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - ARGS(S) |
Specify the list of characters to remove |
Return : S |
|
|
|
Examples : |
|
str.remove_extend( "datachain", [ "c" , "h" , "n" , "i" ] ) = "dataa" |
|
str.remove_extend( "$busi&ness$", [ "$" , "&" ] ) = "business" |
str.remove_linebreak
str.remove_linebreak(Value - S) |
|
Removes linebreak characters from a String. |
|
Parameters : |
|
Value - S |
Specify String to process |
Return : S |
|
|
str.remove_space
str.remove_space(Value - S, Treatment - CHOICE(S)) |
|
Deletes space character in a String. |
|
Parameters : |
|
Value - S |
Specify string to process |
Treatment - CHOICE(S) |
Specify processing mode to apply to string |
Return : S |
|
|
|
Examples : |
|
str.remove_space( " datachain and maestro", "LEFT" ) = "datachain and maestro" |
|
str.remove_space( "datachain and maestro ", "RIGHT" ) = "datachain and maestro" |
|
str.remove_space( "1 2 3 4 5 6 ", "ALL" ) = "123456" |
str.remove_start
str.remove_start(Value - S, Characters - S) |
|
Deletes characters group only if at beginning of given String, otherwise returns input String. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - S |
Specify character(s) to delete |
Return : S |
|
|
|
Examples : |
|
str.remove_start( "dataplatform", "data" ) = "platform" |
|
str.remove_start( "dataplatform", "Data" ) = "dataplatform" |
str.replace
str.replace(Value - S,De,Da,I,B.I, Character(s) - S,De,Da,I,B.I, Character(s) - S,De,Da,I,B.I) |
|
Replaces one or several character(s) in a String. Is case-sensitive. |
|
Parameters : |
|
Value - S,De,Da,I,B.I |
Specify string to process |
Character(s) - S,De,Da,I,B.I |
Specify character(s) to search |
Character(s) - S,De,Da,I,B.I |
Specify wildcard string |
Return : S |
|
|
|
Examples : |
|
str.replace( "Dupont", "t", "d" ) = "Dupond" |
|
str.replace( "Dupont & Dupont", "&", "et" ) = "Dupont et Dupont" |
str.replace_extend
str.replace_extend(Value - S, Characters - ARGS(S), Characters - ARGS(S)) |
|
Replaces all occurrences of a list of characters in a String. Case-sensitive. |
|
Parameters : |
|
Value - S |
Specify string to process |
Characters - ARGS(S) |
Characters to search |
Characters - ARGS(S) |
Replacement characters |
Return : S |
|
|
|
Examples : |
|
str.replace_extend( "diti", [ "i" ], [ "a" ] ) = "data" |
|
str.replace_extend( "178456", [ "7" , "8" ], [ "2" , "3" ] ) = "123456" |
str.replace_null
str.replace_null(Value - S, String replacing Null - S) |
|
Replaces a Null value by String value |
|
Parameters : |
|
Value - S |
Specify value to process |
String replacing Null - S |
Specify string that replaces Null value |
Return : S |
|
|
|
Examples : |
|
str.replace_null( "Datachain", "t" ) = "Datachain" |
|
str.replace_null( null, "Data" ) = "Data" |
str.replace_regex
str.replace_regex(Value - S,De,Da,I,B.I, REGEX - S, Character(s) - S,De,Da,I,B.I) |
|
Replaces one or several character(s) with another using REGEX expression. |
|
Parameters : |
|
Value - S,De,Da,I,B.I |
Specify Value to process |
REGEX - S |
Specify regular expression (Regex) |
Character(s) - S,De,Da,I,B.I |
Specify wildcard(s) |
Return : S |
|
|
|
Examples : |
|
str.replace_regex( "la1puis2ensuite3", "\d", "et" ) = "laetpuisetensuiteet" |
str.size
str.size(Value - S) |
|
Returns the size of a String (number of the String characters). Counts all types of characters including letters, digits, spaces, and special characters. |
|
Parameters : |
|
Value - S |
Specify string to process |
Return : I |
|
|
|
Examples : |
|
str.size( "Dupont" ) = 6 |
|
str.size( null ) = null |
str.soundex
str.soundex(Value - S) |
|
Returns SOUNDEX of a String. |
|
Parameters : |
|
Value - S |
Specify string to process |
Return : S |
|
|
|
Examples : |
|
str.soundex( "Dupont" ) = "D153" |
|
str.soundex( "Dupond" ) = "D153" |
|
str.soundex( null ) = null |
str.split
str.split(Value - S, Separator - S) |
|
Executes a split of a String by defining a separator. |
|
Parameters : |
|
Value - S |
Specify String to split |
Separator - S |
Specify separator used to split string |
Return : LIST(S) |
|
|
|
Examples : |
|
str.split( "Datachain__maestro_and_dccode", "_" ) = [ "Datachain" , "maestro" , "and" , "dccode" ] |
|
str.split( "Datachain &Maestro", " &" ) = [ "Datachain" , "Maestro" ] |
|
str.split( "Datachain & Maestro", "" ) = [ "Datachain & Maestro" ] |
|
str.split( "Datachain & Maestro", null ) = [ ] |
|
str.split( null, "data" ) = [ ] |
str.split_and_concat
str.split_and_concat(Value - S, Separator - S, Value - S, Position - CHOICE(S)) |
|
Deletes one or more characters (separator) from a String, then concatenates another String with it. |
|
Parameters : |
|
Value - S |
Specify the String to split |
Separator - S |
Specify separator to remove |
Value - S |
Specify string to be concatenate to final string |
Position - CHOICE(S) |
Specify concatenation position |
Return : S |
|
|
|
Examples : |
|
str.split_and_concat( "Dupont&Dupon", "&", "d", "END" ) = "DupontDupond" |
|
str.split_and_concat( "D*u*p*o*n*t*", "*", "d", "END" ) = "Dupontd" |
|
str.split_and_concat( null, "o", "j", "START" ) = null |
str.split_from_regex
str.split_from_regex(Value - S,De,Da,I,B.I, REGEX - S) |
|
Split a String using regular expression. |
|
Parameters : |
|
Value - S,De,Da,I,B.I |
Specify string to process |
REGEX - S |
Specify regular expression (Regex) |
Return : LIST(S) |
|
|
|
Examples : |
|
str.split_from_regex( "1234.23", "\." ) = [ "1234" , "23" ] |
|
str.split_from_regex( "Dupont_et_Dupond", "\_" ) = [ "Dupont" , "et" , "Dupond" ] |
|
str.split_from_regex( "tTtOoTtOo", "\p{Upper}" ) = [ "t" , "t" , "o" , "t" , "o" ] |
str.split_from_regex_preserve_all
str.split_from_regex_preserve_all(Value - S,De,Da,I,B.I, REGEX - S) |
|
Splits a string using the specified regular expression and preserves all segments, including empty strings generated by consecutive separators or matches at the boundaries. |
|
Parameters : |
|
Value - S,De,Da,I,B.I |
Specify string to process |
REGEX - S |
Specify regular expression (Regex) |
Return : LIST(S) |
|
|
|
Examples : |
|
str.split_from_regex_preserve_all( "1234.23", "\." ) = [ "1234" , "23" ] |
|
str.split_from_regex_preserve_all( "Dupont_et_Dupond", "\_" ) = [ "Dupont" , "et" , "Dupond" ] |
|
str.split_from_regex_preserve_all( "la1puis2ensuite3", "[0-9]" ) = [ "la" , "puis" , "ensuite" , "" ] |
|
str.split_from_regex_preserve_all( "tTtOoTtOo", "\p{Upper}" ) = [ "t" , "t" , "o" , "t" , "o" ] |
str.split_preserve_all
str.split_preserve_all(Value - S, Separator - S) |
|
Executes a split of a String preserving all characters, including empty characters created by consecutive separators. |
|
Parameters : |
|
Value - S |
Specify string to split |
Separator - S |
Specify separator used to split string |
Return : LIST(S) |
|
|
|
Examples : |
|
str.split_preserve_all( "Dupont_et_Dupond", "\_" ) = [ "Dupont" , "et" , "Dupond" ] |
|
str.split_preserve_all( "la1puis222ensuite3", "2" ) = [ "la1puis" , "" , "" , "ensuite3" ] |
str.to_bigint
str.to_bigint(Value - S) |
|
Transforms a String into a Big integer. Supports conversion of negative Big integer. |
|
Parameters : |
|
Value - S |
Specify string to transform |
Return : B.I |
|
|
|
Examples : |
|
str.to_bigint( "1234" ) = 1234 |
|
str.to_bigint( "data" ) = null |
str.to_bool
str.to_bool(Value - S) |
|
Convert String to Boolean. Is case-insensitive. |
|
Parameters : |
|
Value - S |
Specify string to transform |
Return : B |
|
|
|
Examples : |
|
str.to_bool( "false" ) = false |
|
str.to_bool( "data" ) = null |
str.to_datez
str.to_datez(Value - S, Mask - CHOICE(S), Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Parse Date from string with timeZone and language. |
|
Parameters : |
|
Value - S |
Specify string to transform |
Mask - CHOICE(S) |
Specify reading mask |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : Da |
|
|
|
Examples : |
|
str.to_datez( "11/01/2020 13:34:59", "MM/dd/yyyy HH:mm:ss", "Europe/Paris", "fr_FR" ) = 2020-11-01T12:34:59Z |
|
str.to_datez( "2023-01-01T01:00:00.123+0100", "yyyy-MM-dd’T’HH:mm:ss[.SSS]XXXX", "UTC", null ) = 2023-01-01T00:00:00.123Z |
|
str.to_datez( "2000-12-31 06:00:00", "yyyy-MM-dd HH:mm:ss", "GMT+07:10", null ) = 2000-12-30T22:50:00Z |
str.to_dec
str.to_dec(Value - S, Reading mask - CHOICE(S)) |
|
Transforms a String into a Decimal. |
|
Parameters : |
|
Value - S |
Specify string to transform |
Reading mask - CHOICE(S) |
Specify reading mask used to read String to process |
Return : De |
|
|
|
Examples : |
|
str.to_dec( "4.23", "##.##" ) = 4.23 |
|
str.to_dec( "true", "##.##" ) = null |
|
str.to_dec( "NaN", "##.##" ) = NaN |
str.to_integer
str.to_integer(Value - S) |
|
Transforms a String into an Integer |
|
Parameters : |
|
Value - S |
Specify string to transform |
Return : I |
|
|
|
Examples : |
|
str.to_integer( "4.23" ) = null |
|
str.to_integer( "1234" ) = 1234 |
str.to_list
str.to_list(Value - S) |
|
Transforms a String into a String list. |
|
Parameters : |
|
Value - S |
Specify string to process such as ['test'] |
Return : LIST(S) |
|
|
|
Examples : |
|
str.to_list( "["data","chain"]" ) = [ "data" , "chain" ] |
|
str.to_list( "["data", null]" ) = [ "data" , null ] |
str.to_list_by_step
str.to_list_by_step(Value - S, Number - I,B.I) |
|
Generates a list of Strings from a string by giving a step length. |
|
Parameters : |
|
Value - S |
Specify string to process |
Number - I,B.I |
Specify step integer (Nb of characters) |
Return : LIST(S) |
|
|
|
Examples : |
|
str.to_list_by_step( "abcdefghijklmnopqrstuvwxyz", 13 ) = [ "abcdefghijklm" , "nopqrstuvwxyz" ] |
|
str.to_list_by_step( "abcdefghijkl", 5 ) = [ "abcde" , "fghij" , "kl" ] |
str.to_object
str.to_object(Key - ARGS(S), Value - ARGS(S,De,Da,I,B.I,B)) |
|
Transforms a String into an object. |
|
Parameters : |
|
Key - ARGS(S) |
Specify keys |
Value - ARGS(S,De,Da,I,B.I,B) |
Specify values |
Return : S |
|
|
|
Examples : |
|
str.to_object( [ "cle1" , "cle2" ], [ "valeur1" , "valeur2" ] ) = "{"cle2":"valeur2", "cle1":"valeur1"}" |
str.to_words
str.to_words(Value - S) |
|
Transforms a String value into a Word value. Useful for detailed text analysis, including Word positioning and context. |
|
Parameters : |
|
Value - S |
Value to transform |
Return : W |
|
|
|
Examples : |
|
str.to_words( "Dupont et Dupond" ) = [{"term":"Dupont","term_length":6,"term_number_in_text":1,"term_number_in_paragraph":1,"term_number_in_sentence":1,"sentence_number_in_text":1,"sentence_number_in_paragraph":1,"paragraph_number_in_text":1},{"term":"et","term_length":2,"term_number_in_text":2,"term_number_in_paragraph":2,"term_number_in_sentence":2,"sentence_number_in_text":1,"sentence_number_in_paragraph":1,"paragraph_number_in_text":1},{"term":"Dupond","term_length":6,"term_number_in_text":3,"term_number_in_paragraph":3,"term_number_in_sentence":3,"sentence_number_in_text":1,"sentence_number_in_paragraph":1,"paragraph_number_in_text":1}] |
|
str.to_words( null ) = [{"term":null,"term_length":null,"term_number_in_text":null,"term_number_in_paragraph":null,"term_number_in_sentence":null,"sentence_number_in_text":null,"sentence_number_in_paragraph":null,"paragraph_number_in_text":null}] |
str.transform_case
str.transform_case(Value - S, Case to apply - CHOICE(S)) |
|
Sets String to upper or lower case. |
|
Parameters : |
|
Value - S |
Specify string to process |
Case to apply - CHOICE(S) |
Specify type of transformation to be performed - Lower or Upper Case |
Return : S |
|
|
|
Examples : |
|
str.transform_case( "DaTa", "UPPER" ) = "DATA" |
|
str.transform_case( "daTA", "LOWER" ) = "data" |
|
str.transform_case( "Datachain ROCKS !", "UPPER" ) = "DATACHAIN ROCKS !" |
str.transform_to_num
str.transform_to_num(Value - S, Decimal separator - CHOICE(S)) |
|
Transforms a String into a valid decimal number. Removes non-numeric characters and positions correct decimal separator character. |
|
Parameters : |
|
Value - S |
Specify string to process |
Decimal separator - CHOICE(S) |
Specify decimal separator |
Return : De |
|
|
|
Examples : |
|
str.transform_to_num( "123,4", "." ) = null |
|
str.transform_to_num( "123.4", "," ) = null |
|
str.transform_to_num( "123.4", "." ) = 123.4 |
|
str.transform_to_num( null, "." ) = null |
Formulas for Date type
date.add
date.add(Increment - I,B.I, Type of addition to date - CHOICE(S), Date - Da) |
|
Adds an Increment to a Date by specifying an Increment unit. |
|
Parameters : |
|
Increment - I,B.I |
Specify value of Increment |
Type of addition to date - CHOICE(S) |
Choice of Increment time unit |
Date - Da |
Specify Date to increment |
Return : Da |
|
|
|
Examples : |
|
date.add( 1, "MS", null ) = null |
|
date.add( 1, "MINUTE", 1970-01-01T00:00:00Z ) = 1970-01-01T00:01:00Z |
|
date.add( 1, "WEEK", 1970-01-01T00:00:00Z ) = 1970-01-08T00:00:00Z |
|
date.add( -1, "MONTH", 1970-01-01T00:00:00Z ) = 1969-12-01T00:00:00Z |
date.create
date.create(Value to process - S, Reading mask - CHOICE(S), Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Create a Date from an entered value. |
|
Parameters : |
|
Value to process - S |
Specify a value |
Reading mask - CHOICE(S) |
Specify reading mask |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : Da |
|
|
|
Examples : |
|
date.create( "01/11/2020", "MM-dd-yyyy", "Europe/Paris", "fr_FR" ) = null |
|
date.create( "2001/01/12 12:59:17", "yyyy/MM/dd HH:mm:ss", "Europe/London", null ) = 2001-01-12T12:59:17.0Z |
|
date.create( "20230101T01:00:00Z", "[yyyyMMdd][yyyy-MM-dd][yyyy-DDD]['T'[HHmmss][HHmm][HH:mm:ss][HH:mm][.SSSSSSSSS][.SSSSSS][.SSS][.SS][.S]][OOOO][O][XXXXX][XXXX][XXX][XX][X]['['VV']']", "UTC", null ) = 2023-01-01T01:00:00Z |
date.diff
date.diff(Time unit - CHOICE(S), First date - Da, Second date - Da) |
|
Returns the difference between two Date in the requested time unit (truncated value). |
|
Parameters : |
|
Time unit - CHOICE(S) |
Specify time unit for calculation |
First date - Da |
Specify first date to process |
Second date - Da |
Specify second date to process |
Return : B.I |
|
|
|
Examples : |
|
date.diff( "QUARTER", 1970-01-01T00:00:00Z, 1971-01-01T00:00:00Z ) = -4 |
|
date.diff( "DAY", 1970-01-01T00:00:00Z, 1970-01-02T00:00:00Z ) = -1 |
|
date.diff( "MS", 1970-01-01T00:00:01Z, 1970-01-01T00:00:00Z ) = 1000 |
date.from_timestamp
date.from_timestamp(Timestamp - B.I) |
|
Transforms a date in ISO format from a date in UNIX_TIMESTAMP format. |
|
Parameters : |
|
Timestamp - B.I |
Specify timestamp to transform |
Return : Da |
|
|
|
Examples : |
|
date.from_timestamp( 0 ) = 1970-01-01T00:00:00Z |
|
date.from_timestamp( 31536000000 ) = 1971-01-01T00:00:00Z |
|
date.from_timestamp( null ) = null |
date.generate
date.generate(Start - Da, End - Da, Unit time - CHOICE(S), Increment - I) |
|
Generates a list of Date from start date by adding increment until vadatelue is less or equal than end date. |
|
Parameters : |
|
Start - Da |
Specify the increment start date |
End - Da |
Specify the increment end date |
Unit time - CHOICE(S) |
Specify the unit of time to use on which the unit of time will be applied |
Increment - I |
Input the value of the increment |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.generate( 1999-12-31T00:00:00Z, 2000-01-02T00:00:00Z, "DAY", 1 ) = [ 1999-12-31T00:00:00Z , 2000-01-01T00:00:00Z , 2000-01-02T00:00:00Z ] |
|
date.generate( 2000-01-02T00:00:00Z, 1999-12-31T00:00:00Z, "DAY", -1 ) = [ 2000-01-02T00:00:00Z , 2000-01-01T00:00:00Z , 1999-12-31T00:00:00Z ] |
date.if
date.if(Rule - B, Value if true - Da, Value if false - Da) |
|
Checks if condition is met and returns a Date if result of the condition you specified is True, and another Date if result is False. |
|
Parameters : |
|
Rule - B |
Specify condition to process |
Value if true - Da |
Returned value if test is true |
Value if false - Da |
Returned value if test is false |
Return : Da |
|
|
date.is_date
date.is_date(Value - S, Reading mask - CHOICE(S)) |
|
Checks if a value is a Date. |
|
Parameters : |
|
Value - S |
Specify string to process |
Reading mask - CHOICE(S) |
Specify reading mask |
Return : B |
|
|
|
Examples : |
|
date.is_date( "1970-01-01T00:00:00.000100Z", "yyyy-MM-dd’T’HH:mm:ss.SSSSSSXXX" ) = true |
|
date.is_date( "-1", "dd-MM-yyyy" ) = false |
|
date.is_date( "10/11/1987", "dd/MM/yyyy" ) = true |
|
date.is_date( null, "yyyyMMdd" ) = null |
date.list.as_str
date.list.as_str(List - LIST(Da,S)) |
|
Transforms a list of dates into a String. |
|
Parameters : |
|
List - LIST(Da,S) |
Specify list to process |
Return : S |
|
|
|
Examples : |
|
date.list.as_str( [ 1970-01-01T00:00:00Z , 1973-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z ] ) = "[1970-01-01 00:00:00.000, 1973-01-01 00:00:00.000, 1971-01-01 00:00:00.000, 1972-01-01 00:00:00.000]" |
|
date.list.as_str( [ ] ) = null |
date.list.compact
date.list.compact(List - LIST(Da)) |
|
Removes Null values from the list of dates. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.compact( [ 1970-01-01T00:00:00Z , 2000-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z , 2000-01-01T00:00:00Z ] |
|
date.list.compact( [ null , 1970-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z ] |
date.list.contains
date.list.contains(List - LIST(Da), Date - Da) |
|
Checks if searched Date is present in list. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
Date - Da |
Date to search in the list of dates |
Return : B |
|
|
|
Examples : |
|
date.list.contains( [ 2024-01-02T01:01:01Z , 2023-02-02T02:02:02Z ], 2024-01-02T01:01:01Z ) = true |
|
date.list.contains( [ null , 2024-01-02T01:01:01Z ], 2024-01-02T01:01:01Z ) = true |
date.list.count.distinct
date.list.count.distinct(List - LIST(Da,S)) |
|
Returns a list of key values containing the distinct values and their occurrence in the list of dates. |
|
Parameters : |
|
List - LIST(Da,S) |
Specify list to process |
Return : LIST(S) |
|
|
|
Examples : |
|
date.list.count.distinct( [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1970-01-01T00:00:00Z ] ) = [{"value":"1970-01-01 00:00:00.000","count":2},{"value":"1971-01-01 00:00:00.000","count":1}] |
|
date.list.count.distinct( [ ] ) = null |
date.list.create
date.list.create(Value - ARGS(Da)) |
|
Creating a list from 1 to n Dates. |
|
Parameters : |
|
Value - ARGS(Da) |
Input a date to add (the ARGS function allows you to add n arguments) |
Return : LIST(Da) |
|
|
date.list.diff
date.list.diff(First list - LIST(Da), Second list - LIST(Da)) |
|
Returns the list of Date thats different between two Date lists. |
|
Parameters : |
|
First list - LIST(Da) |
Specify first list of date |
Second list - LIST(Da) |
Specify second list of date |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.diff( [ 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z ], [ 1970-01-01T00:00:00Z , 2000-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z , 2000-01-01T00:00:00Z ] |
|
date.list.diff( [ 1970-01-01T00:00:00Z , 1974-01-01T00:00:00Z , 1970-01-01T00:00:00Z ], [ ] ) = [ 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z , 1974-01-01T00:00:00Z ] |
date.list.distinct
date.list.distinct(List - LIST(Da,S)) |
|
Returns a list containing distinct dates (unique values) of the entered list. |
|
Parameters : |
|
List - LIST(Da,S) |
Specify list to process |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.distinct( [ 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z ] |
|
date.list.distinct( [ 1970-01-01T00:00:00Z , 1973-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z , 1973-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z ] |
date.list.except
date.list.except(First list - LIST(Da), Second list - LIST(Da)) |
|
Returns a list of Date, from the first list which are not present in the second list. |
|
Parameters : |
|
First list - LIST(Da) |
Specify first list of date |
Second list - LIST(Da) |
Specify second list of date |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.except( [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1973-01-01T00:00:00Z , 1974-01-01T00:00:00Z , 1972-01-01T00:00:00Z ], [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1973-01-01T00:00:00Z , 1974-01-01T00:00:00Z , 1970-01-01T00:00:00Z , 1972-01-01T00:00:00Z ] ) = [ ] |
|
date.list.except( [ 1970-01-01T00:00:00Z , null , 1972-01-01T00:00:00Z ], [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z ] ) = [ null , 1972-01-01T00:00:00Z ] |
date.list.flat
date.list.flat(List - LIST(Da)) |
|
Transforms an array of arrays into a single array. |
|
Parameters : |
|
List - LIST(Da) |
Specify list of lists to process |
Return : LIST(Da) |
|
|
date.list.get
date.list.get(List - LIST(Da), Index - I,B.I) |
|
Extract a Date in a list by specifying index. The first element of the list at index 0. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
Index - I,B.I |
Specify the position of the date to extract in the list. The first element of the list at index 0 |
Return : Da |
|
|
|
Examples : |
|
date.list.get( [ 1970-01-01T00:00:00Z , 2000-01-01T00:00:00Z ], 1 ) = 2000-01-01T00:00:00Z |
|
date.list.get( [ 1970-01-01T00:00:00Z , 2000-01-01T00:00:00Z ], 5 ) = null |
date.list.insert
date.list.insert(List - LIST(Da), Position - I, Value - Da) |
|
Inserts an element in a list of dates at the specified position (numbered from 1 and from right to left if negative). Adds null values if necessary to reach the desired position and returns the new, modified list. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
Position - I |
Specify the insertion position in the list of date |
Value - Da |
Specify the date to insert in the list |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.insert( [ 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z ], 1, 1974-01-01T00:00:00Z ) = [ 1974-01-01T00:00:00Z , 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z ] |
|
date.list.insert( [ 1970-01-01T00:00:00Z ], -1, 1973-01-01T00:00:00Z ) = [ 1970-01-01T00:00:00Z , 1973-01-01T00:00:00Z ] |
date.list.intersect
date.list.intersect(First list - LIST(Da), Second list - LIST(Da)) |
|
Returns the list of Date in common between two Date lists (can contain the same value several times). |
|
Parameters : |
|
First list - LIST(Da) |
Specify first list of Date |
Second list - LIST(Da) |
Specify second list of Date |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.intersect( [ 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z ], [ 1970-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z ] |
|
date.list.intersect( [ null , null ], [ null , null ] ) = [ null , null ] |
date.list.max
date.list.max(List - LIST(Da,S)) |
|
Returns most recent Date from a list of Date. Default reading mask : yyyy-MM-dd HH:mm:ss. Does not take into account null. |
|
Parameters : |
|
List - LIST(Da,S) |
Specify list to process |
Return : Da |
|
|
|
Examples : |
|
date.list.max( [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1972-01-02T00:00:00Z ] ) = 1972-01-02T00:00:00Z |
|
date.list.max( [ 1970-01-01T00:00:00Z , null ] ) = 1970-01-01T00:00:00Z |
date.list.max_occur
date.list.max_occur(List - LIST(Da,S)) |
|
Gives the most represented Date (or a list in egality case). |
|
Parameters : |
|
List - LIST(Da,S) |
Specify list to process |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.max_occur( [ 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z ] |
|
date.list.max_occur( [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1973-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1973-01-01T00:00:00Z ] |
|
date.list.max_occur( [ 1970-01-01T00:00:00Z , null ] ) = [ 1970-01-01T00:00:00Z ] |
date.list.min
date.list.min(List - LIST(Da,S)) |
|
Returns oldest Date in a list of Date. Default Reading mask : yyyy-MM-dd HH:mm:ss. Does not take into account null. |
|
Parameters : |
|
List - LIST(Da,S) |
Specify list to process |
Return : Da |
|
|
|
Examples : |
|
date.list.min( [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1972-01-02T00:00:00Z ] ) = 1970-01-01T00:00:00Z |
|
date.list.min( [ 1970-01-01T00:00:00Z , null ] ) = 1970-01-01T00:00:00Z |
date.list.min_occur
date.list.min_occur(List - LIST(Da,S)) |
|
Gives the least represented Date (or a list in egality case). |
|
Parameters : |
|
List - LIST(Da,S) |
Specify list to process |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.min_occur( [ 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z ] |
|
date.list.min_occur( [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1973-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1973-01-01T00:00:00Z ] |
|
date.list.min_occur( [ 1970-01-01T00:00:00Z , null ] ) = [ 1970-01-01T00:00:00Z ] |
date.list.position
date.list.position(List - LIST(Da), Value - Da) |
|
Returns the position in the list of the value of argument 2. Returns -1 if argument 2 is absent. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
Value - Da |
Date to search in list |
Return : I |
|
|
|
Examples : |
|
date.list.position( [ 1970-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1973-01-01T00:00:00Z , 1974-01-01T00:00:00Z ], 1975-01-01T00:00:00Z ) = -1 |
|
date.list.position( [ 1970-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1973-01-01T00:00:00Z , 1974-01-01T00:00:00Z , 1975-01-01T00:00:00Z ], 1974-01-01T00:00:00Z ) = 3 |
date.list.remove
date.list.remove(List - LIST(Da), Value - Da) |
|
Removes all occurrences of a Date in a list of Dates. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
Value - Da |
Value to remove |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.remove( [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00 , 2023-01-01T00:00:00Z , 2025-01-01T12:00:34Z ], 2023-01-01T00:00:00Z ) = [ 2024-01-01T00:00:00Z , 2025-01-01T12:00:34Z ] |
|
date.list.remove( [ null , 2023-01-01T23:59:59Z , null , 2002-09-09T00:00:00Z ], null ) = [ 2023-01-01T23:59:59Z , 2002-09-09T00:00:00Z ] |
|
date.list.remove( [ null , 1985-07-12T00:00:00Z , 2023-01-01T00:00:00Z , 2023-01-01T00:00:00Z ], 2023-01-01T00:00:00Z ) = [ null , 1985-07-12T00:00:00Z ] |
|
date.list.remove( [ ], 2023-01-01T00:00:00Z ) = [ ] |
date.list.remove_extend
date.list.remove_extend(List - LIST(Da), List - ARGS(Da)) |
|
Removes all occurrences of multiple Dates in a List of Dates. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
List - ARGS(Da) |
Specify list of values to remove |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.remove_extend( [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00 , 2023-01-01T00:00:00Z , 2025-01-01T12:00:34Z ], [ 2023-01-01T00:00:00Z , 2025-01-01T12:00:34Z , 2030-01-01T00:00:00Z ] ) = [ 2024-01-01T00:00:00Z ] |
|
date.list.remove_extend( [ null , 2023-01-01T23:59:59Z , null , 2002-09-09T00:00:00Z , 2010-11-25T00:30:00 ], [ null , 2015-11-25T00:00:00 ] ) = [ 2023-01-01T23:59:59Z , 2002-09-09T00:00:00Z , 2010-11-25T00:30:00 ] |
|
date.list.remove_extend( [ null , 1985-07-12T00:00:00Z , 2023-01-01T00:00:00Z , 2023-01-01T00:00:00Z ], [ 2023-01-01T00:00:00Z ] ) = [ null , 1985-07-12T00:00:00Z ] |
|
date.list.remove_extend( [ ], [ 2023-01-01T00:00:00Z ] ) = [ ] |
date.list.replace
date.list.replace(List - LIST(Da), Date - Da, Date - Da) |
|
Replaces all occurrences of a Date in a list of Dates. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
Date - Da |
Value to replace |
Date - Da |
Replacement value |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.replace( [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00 , 2023-01-01T00:00:00Z , 2025-01-01T12:00:34Z ], 2023-01-01T00:00:00Z, 1923-01-01T00:00:00Z ) = [ 1923-01-01T00:00:00Z , 2024-01-01T00:00:00 , 1923-01-01T00:00:00Z , 2025-01-01T12:00:34Z ] |
|
date.list.replace( [ null , 2023-01-01T00:00:00Z , null , 2024-01-01T00:00:00Z ], null, 2023-01-01T00:00:00Z ) = [ 2023-01-01T00:00:00Z , 2023-01-01T00:00:00Z , 2023-01-01T00:00:00Z , 2024-01-01T00:00:00Z ] |
|
date.list.replace( [ null , 2023-01-01T00:00:00Z , null , 2024-01-01T00:00:00Z ], 2023-01-01T00:00:00Z, null ) = [ null , null , null , 2024-01-01T00:00:00Z ] |
|
date.list.replace( [ ], 2023-01-01T00:00:00Z, 1923-01-01T00:00:00Z ) = [ ] |
date.list.replace_extend
date.list.replace_extend(List - LIST(Da), List - ARGS(Da), List - ARGS(Da)) |
|
Replaces all occurrences of multiple Dates in a list of Dates. All replacements are done simultaneously. The correspondence between the value to be replaced and the replacement value is done according to the index of the values in the parameter list. If the same value appears multiple times among the values to be replaced, it will always be replaced by the replacement value associated with its first occurrence in the list. |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
List - ARGS(Da) |
Specify list of values to replace |
List - ARGS(Da) |
Specify list of replacement values |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.replace_extend( [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00 , 2023-01-01T00:00:00Z , 2025-01-01T12:00:34Z ], [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00Z , 2030-05-06T00:00:00Z ], [ 1923-01-01T00:00:00Z , 1924-01-01T00:00:00Z , 1930-05-06T00:00:00Z ] ) = [ 1923-01-01T00:00:00Z , 1924-01-01T00:00:00 , 1923-01-01T00:00:00Z , 2025-01-01T12:00:34Z ] |
|
date.list.replace_extend( [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00 , 2023-01-01T00:00:00Z , 2025-01-01T12:00:34Z ], [ 2023-01-01T00:00:00Z , 2023-01-01T00:00:00Z , 2023-01-01T00:00:00Z ], [ 1923-01-01T00:00:00Z , 1923-12-31T00:00:00Z , 1900-01-01T00:00:00Z ] ) = [ 1923-01-01T00:00:00Z , 2024-01-01T00:00:00 , 1923-01-01T00:00:00Z , 2025-01-01T12:00:34Z ] |
|
date.list.replace_extend( [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00 , 2025-01-01T12:00:34Z ], [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00Z ], [ 1923-01-01T00:00:00Z ] ) = [ 2023-01-01T00:00:00Z , 2024-01-01T00:00:00 , 2025-01-01T12:00:34Z ] |
|
date.list.replace_extend( [ null , 2023-01-01T00:00:00Z , 2024-01-01T00:00:00Z , 2025-01-01T12:00:34Z ], [ ], [ ] ) = [ null , 2023-01-01T00:00:00Z , 2024-01-01T00:00:00Z , 2025-01-01T12:00:34Z ] |
|
date.list.replace_extend( [ ], [ 2023-01-01T00:00:00Z ], [ 1923-01-01T00:00:00Z ] ) = [ ] |
date.list.sort
date.list.sort(List - LIST(Da)) |
|
Sorting a list of Dates by ascending date. |
|
Parameters : |
|
List - LIST(Da) |
Date list to sort |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.sort( [ 1970-01-01T00:00:00Z , 1973-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z , 1973-01-01T00:00:00Z ] |
date.list.union
date.list.union(First list - LIST(Da), Second list - LIST(Da)) |
|
Union of two Date lists. |
|
Parameters : |
|
First list - LIST(Da) |
Specify first list of Date |
Second list - LIST(Da) |
Specify second list of Date |
Return : LIST(Da) |
|
|
|
Examples : |
|
date.list.union( [ 1974-01-01T00:00:00Z ], [ 1974-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1970-02-01T00:00:00Z ] ) = [ 1974-01-01T00:00:00Z , 1974-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1970-02-01T00:00:00Z ] |
|
date.list.union( [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1970-01-01T00:00:00Z ], [ ] ) = [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1970-01-01T00:00:00Z ] |
date.to_bigint
date.to_bigint(Date - Da) |
|
Transform a Date into a Big Integer (timestamp in ms). |
|
Parameters : |
|
Date - Da |
Specify date to transform |
Return : B.I |
|
|
|
Examples : |
|
date.to_bigint( 1970-01-01T00:00:00Z ) = 0 |
|
date.to_bigint( 1971-01-01T00:00:00Z ) = 31536000000 |
|
date.to_bigint( null ) = null |
date_time.day_of_month
date_time.day_of_month(Date - Da, Timezone - CHOICE(S)) |
|
Returns the day number of the month for a given Date in the specified Timezone, ranging from 1 to 31. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : I |
|
|
|
Examples : |
|
date_time.day_of_month( 2024-03-20T00:00:00Z, "UTC" ) = 20 |
|
date_time.day_of_month( 2024-03-20T20:00:00Z, "Asia/Tokyo" ) = 21 |
|
date_time.day_of_month( null, "UTC" ) = null |
date_time.day_of_week
date_time.day_of_week(Date - Da, Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the day number of the week for a given Date in the specified Timezone and Language, ranging from 1 to 7. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : I |
|
|
|
Examples : |
|
date_time.day_of_week( 2024-03-20T00:00:00Z, "UTC", "fr_FR" ) = 3 |
|
date_time.day_of_week( null, "UTC", "fr_FR" ) = null |
date_time.day_of_year
date_time.day_of_year(Date - Da, Timezone - CHOICE(S)) |
|
Returns the day number of the year for a given Date in the specified Timezone, ranging from 1 to 365 (or 366 in a leap year). |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : I |
|
|
|
Examples : |
|
date_time.day_of_year( 2024-08-08T00:00:00Z, "UTC" ) = 221 |
|
date_time.day_of_year( 2024-08-08T20:00:00Z, "Asia/Tokyo" ) = 222 |
|
date_time.day_of_year( null, "UTC" ) = null |
date_time.deducted
date_time.deducted(Date - Da, Timezone - CHOICE(S), Language - CHOICE(S), Type - CHOICE(S)) |
|
Returns the Date based on the defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Type - CHOICE(S) |
Specify deduction type |
Return : Da |
|
|
|
Examples : |
|
date_time.deducted( null, null, null, null ) = null |
|
date_time.deducted( 2023-10-18T06:39:12Z, null, null, "WEEK_START" ) = 2023-10-16T00:00:00Z |
|
date_time.deducted( 2023-10-18T06:39:12Z, "Europe/Paris", "fr_FR", "SEMESTRE_START" ) = 2023-06-30T22:00:00Z |
|
date_time.deducted( 2023-10-18T06:39:12Z, "UTC", "en_US", "WEEK_START" ) = 2023-10-15T00:00:00Z |
date_time.hour_of
date_time.hour_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the hour number for a given Date in the specified Timezone, ranging from 0 to 23. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : I |
|
|
|
Examples : |
|
date_time.hour_of( 2027-01-01T00:00:00Z, "UTC" ) = 0 |
|
date_time.hour_of( 2023-12-31T20:00:00Z, "Asia/Tokyo" ) = 5 |
|
date_time.hour_of( null, "UTC" ) = null |
date_time.minute_of
date_time.minute_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the year number for a given Date in the specified Timezone, ranging from 0 to 59. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : I |
|
|
|
Examples : |
|
date_time.minute_of( 2027-01-01T00:00:00Z, "UTC" ) = 0 |
|
date_time.minute_of( 2023-12-31T20:11:00Z, "Asia/Tokyo" ) = 11 |
|
date_time.minute_of( null, "UTC" ) = null |
date_time.month_end
date_time.month_end(Timezone - CHOICE(S)) |
|
Returns the Date of the end of month for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.month_end_of
date_time.month_end_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the end of month for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.month_end_of( null, "Europe/Paris" ) = null |
|
date_time.month_end_of( 2023-10-18T06:39:12Z, "Europe/Paris" ) = 2023-10-30T23:00:00Z |
date_time.month_of
date_time.month_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the month number for a given Date in the specified Timezone, ranging from 1 to 12. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : I |
|
|
|
Examples : |
|
date_time.month_of( 2027-01-01T00:00:00Z, "UTC" ) = 1 |
|
date_time.month_of( 2023-12-31T20:00:00Z, "Asia/Tokyo" ) = 1 |
|
date_time.month_of( null, "UTC" ) = null |
date_time.month_of_year
date_time.month_of_year(Date - Da, Timezone - CHOICE(S)) |
|
Returns the month number of the year for a given Date in the specified Timezone, ranging from 1 to 12. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : I |
|
|
|
Examples : |
|
date_time.month_of_year( 2025-03-31T00:00:00Z, "UTC" ) = 3 |
|
date_time.month_of_year( 2025-06-03T12:00:00Z, "America/Los_Angeles" ) = 6 |
|
date_time.month_of_year( null, "UTC" ) = null |
date_time.month_start
date_time.month_start(Timezone - CHOICE(S)) |
|
Returns the Date of the start of month for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.month_start_of
date_time.month_start_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the start of month for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.month_start_of( null, "Europe/Paris" ) = null |
|
date_time.month_start_of( 2023-10-18T06:39:12Z, "Europe/Paris" ) = 2023-09-30T22:00:00Z |
date_time.quarter_end
date_time.quarter_end(Timezone - CHOICE(S)) |
|
Returns the Date of the end of quarter for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.quarter_end_of
date_time.quarter_end_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the end of quarter for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.quarter_end_of( null, "Europe/Paris" ) = null |
|
date_time.quarter_end_of( 2023-07-18T06:39:12Z, "Europe/Paris" ) = 2023-09-29T22:00:00Z |
date_time.quarter_start
date_time.quarter_start(Timezone - CHOICE(S)) |
|
Returns the Date of the start of quarter for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.quarter_start_of
date_time.quarter_start_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the start of quarter for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.quarter_start_of( 2023-10-18T06:39:12Z, "Europe/Paris" ) = 2023-09-30T22:00:00Z |
date_time.second_of
date_time.second_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the second number for a given Date in the specified Timezone, ranging from 0 to 59. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : I |
|
|
|
Examples : |
|
date_time.second_of( 2027-01-01T00:00:00Z, "UTC" ) = 0 |
|
date_time.second_of( 2023-12-31T20:00:00Z, "Asia/Tokyo" ) = 0 |
|
date_time.second_of( null, "UTC" ) = null |
date_time.semester_end
date_time.semester_end(Timezone - CHOICE(S)) |
|
Returns the Date of the end of semester for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.semester_end_of
date_time.semester_end_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the end of semester for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.semester_end_of( null, "Europe/Paris" ) = null |
|
date_time.semester_end_of( 2023-10-18T06:39:12Z, "Europe/Paris" ) = 2023-12-30T23:00:00Z |
date_time.semester_start
date_time.semester_start(Timezone - CHOICE(S)) |
|
Returns the Date of the start of semester for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.semester_start_of
date_time.semester_start_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the start of semester for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.semester_start_of( null, "Europe/Paris" ) = null |
|
date_time.semester_start_of( 2023-10-18T06:39:12Z, "Europe/Paris" ) = 2023-06-30T22:00:00Z |
date_time.to_str
date_time.to_str(Date - Da, Output date mask - CHOICE(S), Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Transform a Date into a String using the specified timezone and language. |
|
Parameters : |
|
Date - Da |
Specify date to transform |
Output date mask - CHOICE(S) |
Specify output mask |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : S |
|
|
|
Examples : |
|
date_time.to_str( null, "yyyy-MM-dd’T’HH:mm:ss.SSSSSSXXX", "Europe/Paris", "fr_FR" ) = null |
|
date_time.to_str( 2023-01-01T00:00:00.000100Z, "yyyy-MM-dd’T’HH:mm:ss.SSSSSSXXX", "Europe/Paris", "fr_FR" ) = "2023-01-01T01:00:00.000100+01:00" |
|
date_time.to_str( 2023-01-01T01:00:00Z, "yyyy-MM-dd’T’HH:mm:ssXXX", "UTC", null ) = "2023-01-01T01:00:00Z" |
date_time.today
date_time.today(Timezone - CHOICE(S)) |
|
Returns the Date of current day, at midnight in the specified timezone. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.tomorrow
date_time.tomorrow(Timezone - CHOICE(S)) |
|
Returns the Date of day after current day, at midnight in the specified timezone. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.tomorrow_of
date_time.tomorrow_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the day after the given date, at midnight in the specified timezone. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.tomorrow_of( 2023-10-18T06:39:12Z, "UTC" ) = 2023-10-19T00:00:00Z |
date_time.week_end
date_time.week_end(Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the Date of the end of week for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : Da |
|
|
date_time.week_end_of
date_time.week_end_of(Date - Da, Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the Date of the end of month for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : Da |
|
|
|
Examples : |
|
date_time.week_end_of( null, "Europe/Paris", "fr_FR" ) = null |
|
date_time.week_end_of( 2023-10-18T06:39:12Z, "UTC", "en_US" ) = 2023-10-21T00:00:00Z |
date_time.week_of_month
date_time.week_of_month(Date - Da, Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the week number of the month for a given Date in the specified Timezone and Language, ranging from 0 to 5. Week one is the week starting on the first day of a week in the selected country, where there are at least the minimal days in a week for the selected country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : I |
|
|
|
Examples : |
|
date_time.week_of_month( 2025-08-01T00:00:00Z, "UTC", "fr_FR" ) = 0 |
|
date_time.week_of_month( 2025-08-04T00:00:00Z, "UTC", "fr_FR" ) = 1 |
|
date_time.week_of_month( 2025-06-23T12:00:00Z, "America/Los_Angeles", "en_US" ) = 4 |
|
date_time.week_of_month( null, "UTC", "fr_FR" ) = null |
date_time.week_of_week_based_year
date_time.week_of_week_based_year(Date - Da, Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the week number of the year for a given Date in the specified Timezone and Language, considering the ISO-8601 norm, ranging from 1 to 53. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : I |
|
|
|
Examples : |
|
date_time.week_of_week_based_year( 2026-01-01T00:00:00Z, "UTC", "fr_FR" ) = 1 |
|
date_time.week_of_week_based_year( 2025-12-29T00:00:00Z, "Europe/Paris", "fr_FR" ) = 1 |
|
date_time.week_of_week_based_year( 2025-06-03T12:00:00Z, "America/Los_Angeles", "en_US" ) = 23 |
|
date_time.week_of_week_based_year( null, "UTC", "fr_FR" ) = null |
date_time.week_of_year
date_time.week_of_year(Date - Da, Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the week number of the year for a given Date in the specified Timezone and Language, ranging from 0 to 53. Week one is the week starting on the first day of a week in the selected country, where there are at least the minimal days in a week for the selected country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : I |
|
|
|
Examples : |
|
date_time.week_of_year( 2027-01-01T00:00:00Z, "UTC", "fr_FR" ) = 0 |
|
date_time.week_of_year( 2027-01-04T00:00:00Z, "UTC", "fr_FR" ) = 1 |
|
date_time.week_of_year( 2025-06-03T12:00:00Z, "America/Los_Angeles", "en_US" ) = 23 |
|
date_time.week_of_year( null, "UTC", "fr_FR" ) = null |
date_time.week_start
date_time.week_start(Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the Date of the end of month for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : Da |
|
|
date_time.week_start_of
date_time.week_start_of(Date - Da, Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the Date of the start of week for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : Da |
|
|
|
Examples : |
|
date_time.week_start_of( null, "Europe/Paris", "fr_FR" ) = null |
|
date_time.week_start_of( 2023-10-18T06:39:12Z, "Europe/Paris", "fr_FR" ) = 2023-10-15T22:00:00Z |
date_time.year_end
date_time.year_end(Timezone - CHOICE(S)) |
|
Returns the Date of the end of year for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.year_end_of
date_time.year_end_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the end of year for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.year_end_of( null, "Europe/Paris" ) = null |
|
date_time.year_end_of( 2023-10-18T06:39:12Z, "Europe/Paris" ) = 2023-12-30T23:00:00Z |
date_time.year_of
date_time.year_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the year number for a given Date in the specified Timezone. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : I |
|
|
|
Examples : |
|
date_time.year_of( 2027-01-01T00:00:00Z, "UTC" ) = 2027 |
|
date_time.year_of( 2023-12-31T20:00:00Z, "Asia/Tokyo" ) = 2024 |
|
date_time.year_of( null, "UTC" ) = null |
date_time.year_of_week_based_year
date_time.year_of_week_based_year(Date - Da, Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Returns the year number for a given Date in the specified Timezone and Language, considering the ISO-8601 norm. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : I |
|
|
|
Examples : |
|
date_time.year_of_week_based_year( 2027-01-02T00:00:00Z, "UTC", "fr_FR" ) = 2026 |
|
date_time.year_of_week_based_year( 2027-01-04T00:00:00Z, "UTC", "fr_FR" ) = 2027 |
|
date_time.year_of_week_based_year( null, "UTC", "fr_FR" ) = null |
date_time.year_start
date_time.year_start(Timezone - CHOICE(S)) |
|
Returns the Date of the start of year for the current date with defined parameter, at midnight in the specified timezone and country. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.year_start_of
date_time.year_start_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of the start of year for the given day, at midnight in the specified timezone and country. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.year_start_of( null, "Europe/Paris" ) = null |
|
date_time.year_start_of( 2023-10-18T06:39:12Z, "Europe/Paris" ) = 2022-12-31T23:00:00Z |
date_time.yesterday
date_time.yesterday(Timezone - CHOICE(S)) |
|
Returns the Date of day before current day, at midnight in the specified timezone. |
|
Parameters : |
|
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
date_time.yesterday_of
date_time.yesterday_of(Date - Da, Timezone - CHOICE(S)) |
|
Returns the Date of day before the given day, at midnight in the specified timezone. |
|
Parameters : |
|
Date - Da |
Specify a date |
Timezone - CHOICE(S) |
Specify timezone |
Return : Da |
|
|
|
Examples : |
|
date_time.yesterday_of( null, "Europe/Paris" ) = null |
|
date_time.yesterday_of( 2023-10-18T06:39:12Z, "UTC" ) = 2023-10-17T00:00:00Z |
Formulas for Boolean type
bool.is_false
bool.is_false(Boolean - B) |
|
Checks if a Boolean is False. |
|
Parameters : |
|
Boolean - B |
Specify Boolean to process |
Return : B |
|
|
|
Examples : |
|
bool.is_false( null ) = null |
|
bool.is_false( true ) = false |
|
bool.is_false( false ) = true |
bool.is_true
bool.is_true(Boolean - B) |
|
Checks if a Boolean is True. |
|
Parameters : |
|
Boolean - B |
Specify Boolean to process |
Return : B |
|
|
|
Examples : |
|
bool.is_true( null ) = null |
|
bool.is_true( true ) = true |
|
bool.is_true( false ) = false |
bool.not
bool.not(Boolean - B) |
|
Reverse a Boolean value. |
|
Parameters : |
|
Boolean - B |
Specify Boolean to process |
Return : B |
|
|
|
Examples : |
|
bool.not( null ) = null |
|
bool.not( true ) = false |
|
bool.not( false ) = true |
bool.replace_bool_null
bool.replace_bool_null(Value - B, Boolean replacing Null value - B) |
|
Replaces a Null value by an Boolean. |
|
Parameters : |
|
Value - B |
Specify value to process |
Boolean replacing Null value - B |
Specify Boolean that replaces Null value |
Return : B |
|
|
|
Examples : |
|
bool.replace_bool_null( null, null ) = null |
|
bool.replace_bool_null( null, true ) = true |
|
bool.replace_bool_null( "false", true ) = false |
bool.to_int
bool.to_int(Value - B) |
|
Transform a Boolean into an Integer (0 if False, 1 if True). |
|
Parameters : |
|
Value - B |
Specify value to transform |
Return : I |
|
|
|
Examples : |
|
bool.to_int( null ) = null |
|
bool.to_int( true ) = 1 |
|
bool.to_int( false ) = 0 |
Formulas for geometry functions
geo.contains
geo.contains(Shape - S, Shape - S) |
|
Checks if zone A defined in JSON format (shape) contains zone B defined in JSON format (shape). |
|
Parameters : |
|
Shape - S |
Specify shape (GeoJson) |
Shape - S |
Specify shape (GeoJson) |
Return : B |
|
|
|
Examples : |
|
geo.contains( "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[2.0,2.0],[2.0,0.0],[0.0,0.0]]]}", "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[3.0,3.0],[2.0,0.0],[0.0,0.0]]]}" ) = true |
|
geo.contains( "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[2.0,2.0],[2.0,0.0],[0.0,0.0]]]}", "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[1.0,1.0],[2.0,0.0],[0.0,0.0]]]}" ) = false |
geo.contains_point
geo.contains_point(Shape - S, Latitude - S, Longitude - S) |
|
Checks if a location defined in Latitude-Longitude is contained in a GeoJson shape format. |
|
Parameters : |
|
Shape - S |
Specify shape (GeoJson) |
Latitude - S |
Specify point latitude |
Longitude - S |
Specify point longitude |
Return : B |
|
|
|
Examples : |
|
geo.contains_point( "POLYGON 0 0, 0 2, 2 2, 2 0, 0 0", "1", "1" ) = true |
|
geo.contains_point( "POLYGON 0 0, 0 2, 2 2, 2 0, 0 0", "3", "3" ) = false |
geo.google.geocode
geo.google.geocode(Address - S) |
|
Geolocation of an address. Returns a Latitude and Longitude (consumes Google API). |
|
Parameters : |
|
Address - S |
Specify Address |
Return : S |
|
|
geo.google.traject_distance_object
geo.google.traject_distance_object(Start address - S, Arrival address - S, Transport Mode - CHOICE(S)) |
|
Returns distance of a trip between two points defined byir addresses by indicating a mode of transport (Uses Google API). |
|
Parameters : |
|
Start address - S |
Specify Start address |
Arrival address - S |
Specify arrival address |
Transport Mode - CHOICE(S) |
Give Transport mode |
Return : B.I |
|
|
geo.google.traject_distance_value
geo.google.traject_distance_value(Start Latitude - De, Start Longitude - De, Arrival Latitude - De, Arrival longitude - De, Transport Mode - CHOICE(S)) |
|
Returns distance of a trip between two points defined in Latitude-Longitude by indicating a mode of transport (Uses Google API). |
|
Parameters : |
|
Start Latitude - De |
Specify Start Latitude |
Start Longitude - De |
Specify Start Longitude |
Arrival Latitude - De |
Specify Arrival Latitude |
Arrival longitude - De |
pecify Arrival Longitude |
Transport Mode - CHOICE(S) |
Give Transport mode |
Return : B.I |
|
|
geo.google.traject_duration_object
geo.google.traject_duration_object(Start Address - S, Arrival address - S, Transport Mode - CHOICE(S)) |
|
Returns travel time between two addresses by indicating a type of transport (using Google API). |
|
Parameters : |
|
Start Address - S |
Specify Start Address |
Arrival address - S |
Specify arrival Address |
Transport Mode - CHOICE(S) |
Give Transport mode |
Return : B.I |
|
|
geo.google.traject_duration_value
geo.google.traject_duration_value(Start Latitude - De, Start Longitude - De, Arrival Latitude - De, Arrival Latitude - De, Transport Mode - CHOICE(S)) |
|
Returns details of time and journey between two points by indicating a type of transport (using Google API). |
|
Parameters : |
|
Start Latitude - De |
Specify Start Latitude |
Start Longitude - De |
Specify Start Longitude |
Arrival Latitude - De |
Specify Arrival Latitude |
Arrival Latitude - De |
Specify Arrival Longitude |
Transport Mode - CHOICE(S) |
Give Transport mode |
Return : B.I |
|
|
geo.google.way_object
geo.google.way_object(Start Address - S, Arrival address - S, Transport Mode - CHOICE(S)) |
|
Returns time of a trip between two points defined by addresses with a transport type (Uses Google API). |
|
Parameters : |
|
Start Address - S |
Specify Start Address |
Arrival address - S |
Specify Arrival Address |
Transport Mode - CHOICE(S) |
Give Transport mode |
Return : S |
|
|
geo.google.way_value
geo.google.way_value(Start Latitude - De, Start Longitude - De, Arrival latitude - De, Arrival longitude - De, Transport Mode - CHOICE(S)) |
|
Returns route between two points defined in Latitude and Longitude and a mode of transport (Uses Google API). |
|
Parameters : |
|
Start Latitude - De |
Specify Start Latitude |
Start Longitude - De |
Specify Start Longitude |
Arrival latitude - De |
Specify arrival Latitude |
Arrival longitude - De |
Specify arrival Longitude |
Transport Mode - CHOICE(S) |
Give Transport mode |
Return : S |
|
|
geo.intersect
geo.intersect(Shape - S, Shape - S) |
|
Checks if two geographical areas (JSON shape) have an intersection. |
|
Parameters : |
|
Shape - S |
Specify shape (GeoJson) |
Shape - S |
Specify shape (GeoJson) |
Return : B |
|
|
|
Examples : |
|
geo.intersect( "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[2.0,2.0],[2.0,0.0],[0.0,0.0]]]}", "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[3.0,3.0],[2.0,0.0],[0.0,0.0]]]}" ) = true |
geo.st_area
geo.st_area(Geometry - Ge) |
|
Returns area of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Return : De |
|
|
|
Examples : |
|
geo.st_area( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = 4.0 |
geo.st_as_geojson
geo.st_as_geojson(Geometry - Ge) |
|
Returns the GeoJson String representation of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Return : S |
|
|
|
Examples : |
|
geo.st_as_geojson( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[2.0,2.0],[2.0,0.0],[0.0,0.0]]]}" |
geo.st_as_text
geo.st_as_text(Geometry - Ge) |
|
Returns WKT of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Return : S |
|
|
|
Examples : |
|
geo.st_as_text( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = "POLYGON 0 2, 2 2, 2 0, 0 0, 0 2" |
geo.st_buffer
geo.st_buffer(Geometry - Ge, Distance - De,I,B.I) |
|
Returns a geometry / geography that represents all points whose distance from that geometry/geography is less than or equal to a given distance. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Distance - De,I,B.I |
Specify distance |
Return : Ge |
|
|
|
Examples : |
|
geo.st_buffer( POINT 0 0, 1 ) = POLYGON 1 0, 0.9807852804032304 -0.1950903220161282, 0.9238795325112867 -0.3826834323650898, 0.8314696123025452 -0.5555702330196022, 0.7071067811865476 -0.7071067811865475, 0.5555702330196023 -0.8314696123025452, 0.3826834323650898 -0.9238795325112867, 0.1950903220161283 -0.9807852804032304, 0.0000000000000001 -1, -0.1950903220161282 -0.9807852804032304, -0.3826834323650897 -0.9238795325112867, -0.555570233019602 -0.8314696123025455, -0.7071067811865475 -0.7071067811865476, -0.8314696123025453 -0.5555702330196022, -0.9238795325112867 -0.3826834323650899, -0.9807852804032304 -0.1950903220161286, -1 -0.0000000000000001, -0.9807852804032304 0.1950903220161284, -0.9238795325112868 0.3826834323650897, -0.8314696123025455 0.555570233019602, -0.7071067811865477 0.7071067811865475, -0.5555702330196022 0.8314696123025452, -0.3826834323650903 0.9238795325112865, -0.1950903220161287 0.9807852804032303, -0.0000000000000002 1, 0.1950903220161283 0.9807852804032304, 0.38268343236509 0.9238795325112866, 0.5555702330196018 0.8314696123025455, 0.7071067811865474 0.7071067811865477, 0.8314696123025452 0.5555702330196022, 0.9238795325112865 0.3826834323650904, 0.9807852804032303 0.1950903220161287, 1 0 |
geo.st_centroid
geo.st_centroid(Geometry - Ge) |
|
Returns centroid point of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify Geometry |
Return : Ge |
|
|
|
Examples : |
|
geo.st_centroid( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = POINT 1 1 |
geo.st_contains
geo.st_contains(Geometry - Ge, Geometry - Ge) |
|
Checks if geometry 1 fully contains geometry 2. |
|
Parameters : |
|
Geometry - Ge |
Specify Geometry 1 |
Geometry - Ge |
Specify Geometry 2 |
Return : B |
|
|
|
Examples : |
|
geo.st_contains( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, POLYGON 0 0, 0 2, 3 3, 2 0, 0 0 ) = true |
|
geo.st_contains( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, POLYGON 0 0, 0 2, 1 1, 2 0, 0 0 ) = false |
geo.st_convex_hull
geo.st_convex_hull(Geometry - Ge) |
|
Returns convex envelope of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify Geometry |
Return : Ge |
|
|
|
Examples : |
|
geo.st_convex_hull( POLYGON 0 0, 1 1, 0 2, 2 2, 2 0, 0 0 ) = POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 |
geo.st_crosses
geo.st_crosses(Geometry - Ge, Geometry - Ge) |
|
Compares two geometry objects and returns true if the geometries have some, but not all interior points in common. The intersection of the interiors of the geometries must be non-empty and must have dimension less than the maximum dimension of the two input geometries, and the intersection of the two geometries must not equal either geometry. Otherwise, it returns false. |
|
Parameters : |
|
Geometry - Ge |
Specify Geometry 1 |
Geometry - Ge |
Specify Geometry 2 |
Return : B |
|
|
|
Examples : |
|
geo.st_crosses( geo.st_polygon_from_text( "0,0,0,2,2,2,2,0,0,0", "," ), geo.st_line_string_from_text( "1,1,10,0", "," ) ) = true |
|
geo.st_crosses( POLYGON 0 0, 0 1, 1 1, 1 0, 0 0, POLYGON 2 2, 2 3, 3 3, 3 2, 2 2 ) = false |
geo.st_distance
geo.st_distance(Geométry - Ge, Geometry - Ge) |
|
Calculates distance between two points. |
|
Parameters : |
|
Geométry - Ge |
Specify Geométrie 1 |
Geometry - Ge |
Specify Geometry 2 |
Return : De |
|
|
|
Examples : |
|
geo.st_distance( POINT 1 1, POINT 1 2 ) = 1.0 |
geo.st_envelope
geo.st_envelope(Geometry - Ge) |
|
Returns envelope of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify Geometry |
Return : Ge |
|
|
|
Examples : |
|
geo.st_envelope( 1,1,2,2 ) = POLYGON 1 1, 1 2, 2 2, 2 1, 1 1 |
geo.st_equals
geo.st_equals(Geometry - Ge, Geometry - Ge) |
|
Checks if geometry 1 is equal to geometry 2. |
|
Parameters : |
|
Geometry - Ge |
Specify Geometry 1 |
Geometry - Ge |
Specify Geometry 2 |
Return : B |
|
|
|
Examples : |
|
geo.st_equals( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, POLYGON 0 2, 2 2, 2 0, 0 0, 0 2 ) = true |
geo.st_geom_from_geojson
geo.st_geom_from_geojson(GeoJson - S) |
|
Builds a Geometry from a GeoJson. |
|
Parameters : |
|
GeoJson - S |
Specify GeoJson |
Return : Ge |
|
|
|
Examples : |
|
geo.st_geom_from_geojson( "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[2.0,2.0],[2.0,0.0],[0.0,0.0]]]}" ) = POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 |
geo.st_geom_from_wkb
geo.st_geom_from_wkb(WKB - S) |
|
Builds a Geometry from a WKB format. |
|
Parameters : |
|
WKB - S |
Specify WKB |
Return : Ge |
|
|
|
Examples : |
|
geo.st_geom_from_wkb( "01010000005839B4C876BEF33F83C0CAA145B61640" ) = POINT 1.234 5.678 |
geo.st_geom_from_wkt
geo.st_geom_from_wkt(WKT - S) |
|
Builds a Geometry from a WKT format. |
|
Parameters : |
|
WKT - S |
Specify WKT |
Return : Ge |
|
|
|
Examples : |
|
geo.st_geom_from_wkt( "POLYGON 0 0, 0 2, 2 2, 2 0, 0 0" ) = POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 |
geo.st_geometry_type
geo.st_geometry_type(Geometry - Ge) |
|
Returns type of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Return : S |
|
|
|
Examples : |
|
geo.st_geometry_type( POLYGON 0 0, 0 2, 3 3, 2 0, 0 0 ) = "ST_Polygon" |
|
geo.st_geometry_type( LINESTRING 0 0, 0 2 ) = "ST_LineString" |
geo.st_intersection
geo.st_intersection(Geometry - Ge, Geometry - Ge) |
|
Returns intersection between two Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify Geometry 1 |
Geometry - Ge |
Specify Geometry 2 |
Return : Ge |
|
|
|
Examples : |
|
geo.st_intersection( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, POLYGON 1 1, 1 2, 2 2, 2 1, 1 1 ) = POLYGON 1 1, 1 2, 2 2, 2 1, 1 1 |
|
geo.st_intersection( POLYGON 0 0, 0 1, 1 1, 1 0, 0 0, POLYGON 2 2, 2 3, 3 3, 3 2, 2 2 ) = POLYGON EMPTY |
geo.st_intersects
geo.st_intersects(Geometry - Ge, Geometry - Ge) |
|
Checks if two intersecting Geometrys. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry 1 |
Geometry - Ge |
Specify geometry 2 |
Return : B |
|
|
|
Examples : |
|
geo.st_intersects( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, POLYGON 0 2, 0 4, 4 2, 2 2, 0 2 ) = true |
geo.st_is_simple
geo.st_is_simple(Geometry - Ge) |
|
Tests if only self-intersections of Geometry are at limit points. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Return : B |
|
|
|
Examples : |
|
geo.st_is_simple( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = true |
geo.st_is_valid
geo.st_is_valid(Geometry - Ge) |
|
Tests if a Geometry is valid. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Return : B |
|
|
|
Examples : |
|
geo.st_is_valid( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = true |
geo.st_length
geo.st_length(Geometry - Ge) |
|
Returns perimeter of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Return : De |
|
|
|
Examples : |
|
geo.st_length( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = 8.0 |
geo.st_line_string_from_text
geo.st_line_string_from_text(Value - S, Delimiter - S) |
|
Builds a geometric line from a String. |
|
Parameters : |
|
Value - S |
Specify String |
Delimiter - S |
Specify delimiter |
Return : Ge |
|
|
|
Examples : |
|
geo.st_line_string_from_text( "0,0,2,2", "," ) = LINESTRING (0 0, 0 2) |
geo.st_make_valid
geo.st_make_valid(Geometry - Ge, Delete holes - B) |
|
Creates a valid representation of an invalid Geometry (Polygon or Multipolygon). |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Delete holes - B |
Specify if holes need to be removed |
Return : Ge |
|
|
|
Examples : |
|
geo.st_make_valid( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, true ) = POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 |
geo.st_n_points
geo.st_n_points(Geometry - Ge) |
|
Returns points of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify Geometry |
Return : I |
|
|
|
Examples : |
|
geo.st_n_points( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = 5 |
geo.st_overlaps
geo.st_overlaps(Geometry - Ge, Geometry - Ge) |
|
Checks true if geometry 1 overlaps with geometry 2. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry 1 |
Geometry - Ge |
Specify geometry 2 |
Return : B |
|
|
|
Examples : |
|
geo.st_overlaps( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, POLYGON 0 2, 0 5, 4 2, 2 2, 0 2 ) = false |
geo.st_point
geo.st_point(X - De,I,B.I, Y - De,I,B.I) |
|
Builds a geometrical point. |
|
Parameters : |
|
X - De,I,B.I |
Specify X Point |
Y - De,I,B.I |
Specify Y Point |
Return : Ge |
|
|
|
Examples : |
|
geo.st_point( 1, 1 ) = POINT (1 1) |
geo.st_point_from_text
geo.st_point_from_text(Value - S, Delimiter - S) |
|
Builds a geometrical point from a String. |
|
Parameters : |
|
Value - S |
Specify string |
Delimiter - S |
Specify delimiter |
Return : Ge |
|
|
|
Examples : |
|
geo.st_point_from_text( "1,1", "," ) = POINT (1 1) |
geo.st_polygon_from_envelope
geo.st_polygon_from_envelope(Min x - De,I,B.I, Min Y - De,I,B.I, Max X - De,I,B.I, Max Y - De,I,B.I) |
|
Builds a geometric polygon from an envelope. |
|
Parameters : |
|
Min x - De,I,B.I |
Specify minimum X |
Min Y - De,I,B.I |
Specify minimum Y |
Max X - De,I,B.I |
Specify maximum X |
Max Y - De,I,B.I |
Specify maximum Y |
Return : Ge |
|
|
|
Examples : |
|
geo.st_polygon_from_envelope( 1, 1, 2, 2 ) = POLYGON 1 1, 1 2, 2 2, 2 1, 1 1 |
geo.st_polygon_from_text
geo.st_polygon_from_text(Value - S, Delimiter - S) |
|
Builds a Geometric Polygon from a String. |
|
Parameters : |
|
Value - S |
Specify string |
Delimiter - S |
Specify delimiter |
Return : Ge |
|
|
|
Examples : |
|
geo.st_polygon_from_text( "0,0,0,2,2,2,2,0,0,0", "," ) = POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 |
geo.st_precision_reduce
geo.st_precision_reduce(Geometry - Ge, Number - I) |
|
Reduces precision of Decimal numbers in geometry coordinates. last decimal place will be rounded. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Number - I |
Specify decimals number |
Return : Ge |
|
|
|
Examples : |
|
geo.st_precision_reduce( POLYGON 0.22 0.255, 0 2.3, 2 2, 2 0, 0.22 0.255, 1 ) = POLYGON 0 2.3, 2 2, 2 0, 0.2 0.3, 0 2.3 |
geo.st_simplify_preserve_topology
geo.st_simplify_preserve_topology(Geometry - Ge, Distance tolerance - De,I,B.I) |
|
Simplifies Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Distance tolerance - De,I,B.I |
Specify Distance tolerance |
Return : Ge |
|
|
|
Examples : |
|
geo.st_simplify_preserve_topology( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, 1 ) = POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 |
geo.st_touches
geo.st_touches(Geometry - Ge, Géométrie - Ge) |
|
Checks if geometry 1 touches geometry 2. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry 1 |
Géométrie - Ge |
Specify geometry 2 |
Return : B |
|
|
|
Examples : |
|
geo.st_touches( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0, POLYGON 0 2, 0 4, 4 2, 2 2, 0 2 ) = true |
geo.st_transform
geo.st_transform(Geometry - Ge, SRC source - S, Destination SRC - S) |
|
Transforms spatial reference system / coordinate reference system of a Geometry. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
SRC source - S |
Specify source SRC |
Destination SRC - S |
Specify destination SRC |
Return : Ge |
|
|
|
Examples : |
|
geo.st_transform( POINT 0 0, "EPSG:4326", "EPSG:3857" ) = POINT 0 -0.0000000007081155 |
geo.st_within
geo.st_within(Geometry - Ge, Geometry - Ge) |
|
Checks if geometry 1 is entirely contained by geometry 2. |
|
Parameters : |
|
Geometry - Ge |
Specify geometry 1 |
Geometry - Ge |
Specify geometry 2 |
Return : B |
|
|
|
Examples : |
|
geo.st_within( POINT (5 5), POLYGON 0 0, 10 0, 10 10, 0 10, 0 0 ) = true |
URL formulas
url.encode_string
url.encode_string(Value - S) |
|
Encodes String. |
|
Parameters : |
|
Value - S |
Specify string to encod |
Return : S |
|
|
|
Examples : |
|
url.encode_string( "paramWithSlash/andAmpersand&" ) = "paramWithSlash%2FandAmpersand%26" |
url.encode_url
url.encode_url(Value - S) |
|
Encodes URL |
|
Parameters : |
|
Value - S |
Specify URL to encoder |
Return : S |
|
|
url.extract_params
url.extract_params(Value - S) |
|
Performs parameters extraction from URL. |
|
Parameters : |
|
Value - S |
Specify string to process |
Return : S |
|
|
url.extract_uri
url.extract_uri(Value - S) |
|
Extracts URI from URL. |
|
Parameters : |
|
Value - S |
Specify URL to process |
Return : S |
|
|
|
Examples : |
|
url.extract_uri( "http://localhost:4200/service/data/exposition/count?filter=string=beginsWith=" ) = "service/data/exposition/count" |
Specific DataChain formulas
dc.advanced_position
dc.advanced_position(Value - S, Value - S, Start position - CHOICE(S), Start position - I,B.I) |
|
Returns position of a character in a String. |
|
Parameters : |
|
Value - S |
String to processed |
Value - S |
Character to search |
Start position - CHOICE(S) |
Specify if the search begin from the start or the end of the string(Start/End) |
Start position - I,B.I |
Specify the start position to search |
Return : I |
|
|
dc.extract_json
dc.extract_json(JSON expression - S, JSON path - S) |
|
Returns String from a JSON format String using JSON Path. |
|
Parameters : |
|
JSON expression - S |
Expression in JSON format to process |
JSON path - S |
Specify a JSON Path to extract value |
Return : S |
|
|
|
Examples : |
|
dc.extract_json( "{"software": "Datachain", "company": "Adobis"}", "$.software" ) = "Datachain" |
|
dc.extract_json( "{"software": "Datachain", "company": "Adobis"}", "$" ) = "{"software":"Datachain","company":"Adobis"}" |
|
dc.extract_json( "{"software": {"name": "Datachain", "components": [{"name": "GenericsData", "color": "blue"}, {"name": "HandleData", "color": "red"}]}, "company": "Adobis"}", "$.software.components[0]" ) = "{"name":"GenericsData","color":"blue"}" |
|
dc.extract_json( null, "$.software" ) = null |
dc.free
dc.free(Value - S) |
|
Input of a completely free formula respecting SPARK-SQL syntax. |
|
Parameters : |
|
Value - S |
SPARK-SQL synthax String |
Return : S |
|
dc.free_list
dc.free_list(Value - S) |
|
Entry of a completely free formula returning a list of values respecting SPARK-SQL syntax. |
|
Parameters : |
|
Value - S |
SPARK-SQL synthax String |
Return : LIST(S) |
|
dc.ranking
dc.ranking(Value - S,De,Da,I,B.I, Ranking - S) |
|
Applies a DataChain Classification on a value (Consumes a Classification generated in HandleData Classification function of DataChain). |
|
Parameters : |
|
Value - S,De,Da,I,B.I |
Specify value to classify |
Ranking - S |
Specify Datachain Ranking |
Return : S |
|
|
word.to_str
word.to_str(Value - W) |
|
Transforms Word object (DataChain) into a string in JSON format. |
|
Parameters : |
|
Value - W |
Column Words (DataChain) to transform |
Return : S |
|
|
file.extension
file.extension(Value - S) |
|
Returns extension of a file. |
|
Parameters : |
|
Value - S |
Specify file name |
Return : S |
|
|
|
Examples : |
|
file.extension( "file.csv" ) = "csv" |
|
file.extension( "file.json" ) = "json" |
http.get
http.get(URL - S) |
|
Executes GET request via an HTTP protocol. |
|
Parameters : |
|
URL - S |
Specify URL |
Return : S |
|
|
http.post
http.post(URL - S, Request Body - S) |
|
Executes POST request via an HTTP protocol. |
|
Parameters : |
|
URL - S |
Specify URL |
Request Body - S |
Specify body of request |
Return : S |
|
|
bin.content_object
bin.content_object(File type - S, File - Bn) |
|
Transforms a value of type Binary into a value of type Object. |
|
Parameters : |
|
File type - S |
File type (PDF, TXT, HTML, DOC, DOCX, ODT) |
File - Bn |
File to process |
Return : S |
|
bin.content_str
bin.content_str(File type - S, File - Bn) |
|
Extract the content of a binary file and return the corresponding String. |
|
Parameters : |
|
File type - S |
File type (PDF, TXT, HTML, DOC, DOCX, ODT) |
File - Bn |
File to process |
Return : S |
|
Formulas no longer to be used, replaced by new formulas
deprecated.bigint.generate
deprecated.bigint.generate(Increment - I,B.I, Start - I,B.I, End - I,B.I) |
|
Generates a list of Big Integer from start number by adding increment until value is less or equal than end number. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Increment - I,B.I |
Input the value of the increment |
Start - I,B.I |
Specify the increment start number |
End - I,B.I |
Specify the end number of increment |
Return : LIST(B.I) |
|
|
|
Examples : |
|
deprecated.bigint.generate( 2, 0, 4 ) = [ 0 , 2 , 4 ] |
|
deprecated.bigint.generate( 3, 0, 10 ) = [ 0 , 3 , 6 , 9 ] |
|
deprecated.bigint.generate( null, 1, 2 ) = [ ] |
deprecated.bigint.if
deprecated.bigint.if(Value - I,B.I, Operator - CHOICE(S), Value - I,B.I, Value if true - I,B.I, Value if false - I,B.I) |
|
Checks if condition is met and returns a value if result of a condition you specified is True, and an another value if result is False. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - I,B.I |
Specify value to process |
Operator - CHOICE(S) |
Specify operator used for test |
Value - I,B.I |
Specify value to process |
Value if true - I,B.I |
Returned value if test is true |
Value if false - I,B.I |
Returned value if test is false |
Return : B.I |
|
|
deprecated.bigint.list.create
deprecated.bigint.list.create(Value - I,B.I, Value - I,B.I) |
|
Creation of a list of Big integer. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - I,B.I |
Input a value |
Value - I,B.I |
Input a value (the ARGS function allows you to add n arguments) |
Return : LIST(B.I) |
|
|
|
Examples : |
|
deprecated.bigint.list.create( [ 1 , 2 , null ] ) = [ 1 , 2 , null ] |
deprecated.bigint.list.insert
deprecated.bigint.list.insert(List - LIST(I,B.I), Position - I, Value - I,B.I) |
|
Adds a Big Integer to the list specified in argument 1. Array indices start at 1, or start from the end if index is negative. Index above array size appends the array, or prepends the array if index is negative, with null values. Deprecated since version : 8.7.0 |
|
Parameters : |
|
List - LIST(I,B.I) |
Specify list to process |
Position - I |
Specify the insertion position in the list of number |
Value - I,B.I |
Specify the value to insert in the list |
Return : LIST(B.I) |
|
|
|
Examples : |
|
deprecated.bigint.list.insert( [ 1 , 1 ], 1, 5 ) = [ 5 , 1 , 1 ] |
|
deprecated.bigint.list.insert( [ 1 ], 3, 4 ) = [ 1 , null , 4 ] |
deprecated.bigint.list.intersect
deprecated.bigint.list.intersect(First list - LIST(I,B.I), Second list - LIST(I,B.I)) |
|
Returns the list of numbers in common between two number lists (can contain the same value several times). Deprecated since version : 8.7.0 |
|
Parameters : |
|
First list - LIST(I,B.I) |
Specify first list of number |
Second list - LIST(I,B.I) |
Specify second list of number |
Return : LIST(B.I) |
|
|
|
Examples : |
|
deprecated.bigint.list.intersect( [ 5 ], [ 5 , 2 , -3 ] ) = [ 5 ] |
|
deprecated.bigint.list.intersect( [ 5 , 0 , null , 2 ], [ 5 , 2 , -3 , null ] ) = [ 5 , 2 , null ] |
deprecated.bool.if
deprecated.bool.if(Value - B, Opérateur - CHOICE(S), Value - B, Value if true - B, Value if false - B) |
|
Checks if condition is met and returns a value if result of a condition you specified is True, and another value if result is False. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - B |
Specify value to process |
Opérateur - CHOICE(S) |
Specify operator used for test |
Value - B |
Specify value to process |
Value if true - B |
Return value if test is true |
Value if false - B |
Return value if test is false |
Return : B |
|
|
deprecated.date.deducted
deprecated.date.deducted(Date - Da, Type - CHOICE(S)) |
|
Deducts a Date according to a defined parameter. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Type - CHOICE(S) |
Specify the type of deduction to be made |
Return : Da |
|
|
deprecated.date.generate
deprecated.date.generate(Start - Da, End - Da, Unit time - CHOICE(S), Increment - I) |
|
Generates a list of Date from start date by adding increment until vadatelue is less or equal than end date. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Start - Da |
Specify the increment start date |
End - Da |
Specify the increment end date |
Unit time - CHOICE(S) |
Specify the unit of time to use on which the unit of time will be applied |
Increment - I |
Input the value of the increment |
Return : LIST(Da) |
|
|
|
Examples : |
|
deprecated.date.generate( 1999-12-31T00:00:00Z, 2000-01-02T00:00:00Z, "DAY", 1 ) = [ 1999-12-31T00:00:00Z , 2000-01-01T00:00:00Z , 2000-01-02T00:00:00Z ] |
deprecated.date.if
deprecated.date.if(Value - Da, Operator - CHOICE(S), Value - Da, Value if true - Da, Value if false - Da) |
|
Checks if condition is met and returns a Date if result of the condition you specified is True, and another Date if result is False. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - Da |
Specify date to process |
Operator - CHOICE(S) |
Specify operator used for test |
Value - Da |
Specify date to process |
Value if true - Da |
Returned value if test is true |
Value if false - Da |
Returned value if test is false |
Return : Da |
|
|
deprecated.date.list.create
deprecated.date.list.create(Value - Da, Value - Da) |
|
Creation of a list of Date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - Da |
Input a value |
Value - Da |
Input a date (the ARGS function allows you to add n arguments) |
Return : LIST(Da) |
|
|
|
Examples : |
|
deprecated.date.list.create( [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z , 1971-01-01T00:00:00Z , 1972-01-01T00:00:00Z ] |
|
deprecated.date.list.create( [ 1970-01-01T00:00:00Z , null ] ) = [ 1970-01-01T00:00:00Z , null ] |
deprecated.date.list.insert
deprecated.date.list.insert(List - LIST(Da), Position - I, Value - Da) |
|
Adds a Date to the list specified in argument Position. Array indices start at 1, or start from the end if index is negative. Index above array size appends the array, or prepends the array if index is negative, with Null values. Deprecated since version : 8.7.0 |
|
Parameters : |
|
List - LIST(Da) |
Specify list to process |
Position - I |
Specify the insertion position in the list of date |
Value - Da |
Specify the date to insert in the list |
Return : LIST(Da) |
|
|
deprecated.date.list.intersect
deprecated.date.list.intersect(First list - LIST(Da), Second list - LIST(Da)) |
|
Returns the list of Date in common between two Date lists (can contain the same value several times). Deprecated since version : 8.7.0 |
|
Parameters : |
|
First list - LIST(Da) |
Specify first list of Date |
Second list - LIST(Da) |
Specify second list of Date |
Return : LIST(Da) |
|
|
|
Examples : |
|
deprecated.date.list.intersect( [ 1970-01-01T00:00:00Z , 1970-01-01T00:00:00Z ], [ 1970-01-01T00:00:00Z ] ) = [ 1970-01-01T00:00:00Z ] |
|
deprecated.date.list.intersect( [ null , null ], [ null , null ] ) = [ null , null ] |
deprecated.date.month_end
deprecated.date.month_end(Date - Da) |
|
Returns the Date of the end of month of a given date Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.date.month_start
deprecated.date.month_start(Date - Da) |
|
Returns the Date of the start of month of a given date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a date |
Return : Da |
|
|
deprecated.date.quarter_end
deprecated.date.quarter_end(Date - Da) |
|
Returns the Date of the end of quarter of a given date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.date.quarter_start
deprecated.date.quarter_start(Date - Da) |
|
Returns the Date of the start of quarter of a given date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.date.to_str
deprecated.date.to_str(Date - Da, Reading mask - CHOICE(S)) |
|
Transforms a Date into a String. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify date to transform |
Reading mask - CHOICE(S) |
Specify the date reading mask provided as a parameter |
Return : S |
|
|
deprecated.date.to_strz
deprecated.date.to_strz(Date to transform - Da, Reading mask - CHOICE(S), Timezone - CHOICE(S), Language - CHOICE(S)) |
|
Transforms a Date into a Character String by specifying the reading mask, the time zone and the language. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date to transform - Da |
Specify Date to transform |
Reading mask - CHOICE(S) |
Specify reading mask |
Timezone - CHOICE(S) |
Specify timezone |
Language - CHOICE(S) |
Specify language |
Return : S |
|
|
|
Examples : |
|
deprecated.date.to_strz( 2023-01-01T00:00:00.000100Z, "yyyy-MM-dd’T’HH:mm:ss.SSSSSSXXX", "Europe/Paris", null ) = "2023-01-01T01:00:00.000100+01:00" |
|
deprecated.date.to_strz( 2023-01-01T01:00:00Z, "yyyy-MM-dd’T’HH:mm:ssXXX", "UTC", null ) = "2023-01-01T01:00:00Z" |
deprecated.date.tomorrow
deprecated.date.tomorrow(Date - Da) |
|
Return tomorrow’s Date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.date.transform
deprecated.date.transform(Date - Da,S, Entry reading mask - CHOICE(S), Output reading mask - CHOICE(S)) |
|
Transforms a Date into a String by specifying an output reading mask. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da,S |
Specify Date to transform |
Entry reading mask - CHOICE(S) |
Specify entry reading mask |
Output reading mask - CHOICE(S) |
Specify output reading mask |
Return : S |
|
|
deprecated.date.week_end
deprecated.date.week_end(Date - Da) |
|
Returns the Date of the end of week of a given date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.date.week_start
deprecated.date.week_start(Date - Da) |
|
Returns the Date of the start of week of a given Date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.date.year_end
deprecated.date.year_end(Date - Da) |
|
Returns the Date of the end of year of a given date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.date.year_start
deprecated.date.year_start(Date - Da) |
|
Returns the Date of the start of year of a given date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.date.yesterday
deprecated.date.yesterday(Date - Da) |
|
Returns the Date of the day before a given date. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Date - Da |
Specify a Date |
Return : Da |
|
|
deprecated.dc.compare
deprecated.dc.compare(Value - De,I,B.I,Da,S, Operator - CHOICE(S), Value - De,I,B.I,Da,S, Value - De,I,B.I,Da,S) |
|
Compares two Strings. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - De,I,B.I,Da,S |
Specify first string to compare |
Operator - CHOICE(S) |
Specify operator |
Value - De,I,B.I,Da,S |
Specify second string to compare |
Value - De,I,B.I,Da,S |
Specify third value to compare (only in case of interval) |
Return : B |
|
|
deprecated.dc.rule
deprecated.dc.rule(Rule - B, Value if true - S, Value if false - S) |
|
Parameters : |
|
Rule - B |
Specify condition to process |
Value if true - S |
Returned value if test is true |
Value if false - S |
Returned value if test is false |
Return : S |
|
|
deprecated.dc.to_str
deprecated.dc.to_str(Text - De,I,B.I,Da,S) |
|
Transforms any type into a String. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Text - De,I,B.I,Da,S |
Text to transform into a string |
Return : S |
|
|
deprecated.dec.factorial
deprecated.dec.factorial(Value - De,I,B.I) |
|
Returns Factorial of a value. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : B.I |
|
|
|
Examples : |
|
deprecated.dec.factorial( 4 ) = 24 |
|
deprecated.dec.factorial( null ) = null |
deprecated.dec.generate
deprecated.dec.generate(Increment - De,I,B.I, Start Decimal - De,I,B.I, End Decimal - De,I,B.I) |
|
Generates a list of Decimals from the Start Decimal by adding the Increment to the End Decimal. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Increment - De,I,B.I |
Input value to add at each step of the generation |
Start Decimal - De,I,B.I |
Specify initial value of the sequence |
End Decimal - De,I,B.I |
Specify the maximum value of the sequence (inclusive) |
Return : LIST(De) |
|
|
|
Examples : |
|
deprecated.dec.generate( 0.3, 1, 2 ) = [ 1 , 1.3 , 1.6 , 1.9 ] |
|
deprecated.dec.generate( 0, 1, 2 ) = [ ] |
deprecated.dec.if
deprecated.dec.if(Value - De,I,B.I, operator - CHOICE(S), Value - De,I,B.I, Value if true - De,I,B.I, Value if false - De,I,B.I) |
|
Checks if condition is met and returns a value if result of a condition you specified is True, and an another value if result is False. - Deprecated - Use bigint.if instead. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
operator - CHOICE(S) |
Specify operator used for test |
Value - De,I,B.I |
Specify value to process |
Value if true - De,I,B.I |
Returned value if test is true |
Value if false - De,I,B.I |
Returned value if test is false |
Return : De |
|
|
deprecated.dec.is_numeric
deprecated.dec.is_numeric(Value - De,I,B.I) |
|
Checks if value is numeric. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Value - De,I,B.I |
Specify value to process |
Return : B |
|
|
|
Examples : |
|
deprecated.dec.is_numeric( 1 ) = true |
|
deprecated.dec.is_numeric( null ) = false |
deprecated.dec.list.create
deprecated.dec.list.create(Value 1 - De,I,B.I, Value 2 - De,I,B.I) |
|
Creation of a list of Decimal - Deprecated - Use dec.list.create instead. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value 1 - De,I,B.I |
Input a value |
Value 2 - De,I,B.I |
Input a value (n by adding arguments) |
Return : LIST(De) |
|
|
|
Examples : |
|
deprecated.dec.list.create( [ 1.2 , 1.3 , null ] ) = [ 1.2 , 1.3 , null ] |
deprecated.dec.list.insert
deprecated.dec.list.insert(List - LIST(De,I,B.I), Position - I, Value - De,I,B.I) |
|
Adds a Decimal to the list specified in argument 1. Array indices start at 1, or start from the end if index is negative. Index above array size appends the array, or prepends the array if index is negative, with ‘null’ elements. Deprecated since version : 8.7.0 |
|
Parameters : |
|
List - LIST(De,I,B.I) |
Specify list to process |
Position - I |
Specify the insertion position in the list |
Value - De,I,B.I |
Specify the value to insert in the list |
Return : LIST(De) |
|
|
|
Examples : |
|
deprecated.dec.list.insert( [ 1 , 1 ], 1, 5 ) = [ 5 , 1 , 1 ] |
|
deprecated.dec.list.insert( [ 1 ], 3, 4.3 ) = [ 1 , null , 4.3 ] |
deprecated.dec.list.intersect
deprecated.dec.list.intersect(First list - LIST(De,I,B.I), Second list - LIST(De,I,B.I)) |
|
Returns the list of numbers in common between two number lists (can contain the same value several times). Deprecated since version : 8.7.0 |
|
Parameters : |
|
First list - LIST(De,I,B.I) |
Specify first list of numbers |
Second list - LIST(De,I,B.I) |
Specify second list of numbers |
Return : LIST(De) |
|
|
|
Examples : |
|
deprecated.dec.list.intersect( [ 1.2 , 1.2 ], [ 1.2 ] ) = [ 1.2 ] |
|
deprecated.dec.list.intersect( [ 1.2 ], [ 1.2 , 1.2 ] ) = [ 1.2 , 1.2 ] |
|
deprecated.dec.list.intersect( [ 5.2 , 0 , null , 2.3 ], [ 5.2 , 2.3 , -3.4 , null ] ) = [ 5.2 , 2.3 , null ] |
deprecated.dec.operator
deprecated.dec.operator(Operation type to perform - CHOICE(S), List - ARGS(De,I,B.I)) |
|
Performs an operation on a list of Decimal (sum, product, division, subtraction, mean, minimum, maximum or median). Deprecated since version : 8.7.0 |
|
Parameters : |
|
Operation type to perform - CHOICE(S) |
Specify type of operation |
List - ARGS(De,I,B.I) |
Specify list to process |
Return : De |
|
|
|
Examples : |
|
deprecated.dec.operator( "SOMME", [ 1 , 1.2 , 1.4 ] ) = 3.6 |
|
deprecated.dec.operator( "DIFFERENCE", [ 1.3 , 1.4 , 1.5 ] ) = -1.6 |
|
deprecated.dec.operator( "MEDIANE", [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ] ) = 5 |
|
deprecated.dec.operator( "MIN", [ null ] ) = null |
deprecated.geo.distance
deprecated.geo.distance(Start latitude - De, Start Longitude - De, End Latitude - De, Start Longitude - De, Unit - CHOICE(S)) |
|
Returns distance between two geographical points expressed in Latitude and Longitude. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Start latitude - De |
Specify start point latitude |
Start Longitude - De |
Specify start point longitude |
End Latitude - De |
Specify end point latitude |
Start Longitude - De |
Specify end point longitude |
Unit - CHOICE(S) |
Specify unit |
Return : De |
|
|
|
Examples : |
|
deprecated.geo.distance( 1.5, 0.555, 2.456, 2.489, "K" ) = 239.7611497008155 |
deprecated.geo.st_as_GeoJson
deprecated.geo.st_as_GeoJson(Geometry - Ge) |
|
Returns the GeoJson String representation of a Geometry. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Geometry - Ge |
Specify geometry |
Return : S |
|
|
|
Examples : |
|
deprecated.geo.st_as_GeoJson( POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 ) = "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[2.0,2.0],[2.0,0.0],[0.0,0.0]]]}" |
deprecated.geo.st_geom_from_GeoJson
deprecated.geo.st_geom_from_GeoJson(GeoJson - S) |
|
Builds a Geometry from a GeoJson. Deprecated since version : 8.7.0 |
|
Parameters : |
|
GeoJson - S |
Specify GeoJson |
Return : Ge |
|
|
|
Examples : |
|
deprecated.geo.st_geom_from_GeoJson( "{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,2.0],[2.0,2.0],[2.0,0.0],[0.0,0.0]]]}" ) = POLYGON 0 0, 0 2, 2 2, 2 0, 0 0 |
deprecated.int.if
deprecated.int.if(Value - I, Operator - CHOICE(S), Value - I, Value if true - I, Value if false - I) |
|
Checks if condition is met and returns a value if result of a condition you specified is True, and an another value if result is False. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - I |
Specify value to process |
Operator - CHOICE(S) |
Specify operator used for test |
Value - I |
Specify value to process |
Value if true - I |
Returned value if test is true |
Value if false - I |
Returned value if test is false |
Return : I |
|
|
deprecated.int.list.create
deprecated.int.list.create(Value - I, Value - I) |
|
Creation of a list of n Integer. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - I |
Input a value |
Value - I |
Input a Integer (the ARGS function allows you to add n arguments) |
Return : LIST(I) |
|
|
|
Examples : |
|
deprecated.int.list.create( [ 1 , 2 , null ] ) = [ 1 , 2 , null ] |
deprecated.int.list.insert
deprecated.int.list.insert(List - LIST(I), Position - I, Value - I) |
|
Adds an Integer to the list specified in argument 1. Array indices start at 1, or start from the end if index is negative. Index above array size appends the array, or prepends the array if index is negative, with Null values. Deprecated since version : 8.7.0 |
|
Parameters : |
|
List - LIST(I) |
Specify list of integers to process |
Position - I |
Specify the insertion position in list |
Value - I |
Specify the Integer to insert in the list |
Return : LIST(I) |
|
|
|
Examples : |
|
deprecated.int.list.insert( [ 1 , 1 ], 1, 5 ) = [ 5 , 1 , 1 ] |
|
deprecated.int.list.insert( [ 1 ], 3, 4 ) = [ 1 , null , 4 ] |
deprecated.int.list.intersect
deprecated.int.list.intersect(First list - LIST(I), Second list - LIST(I)) |
|
Returns the list of Integer in common between two Integer lists (can contain the same value several times). Deprecated since version : 8.7.0 |
|
Parameters : |
|
First list - LIST(I) |
Specify first list of integer |
Second list - LIST(I) |
Specify second list of integer |
Return : LIST(I) |
|
|
|
Examples : |
|
deprecated.int.list.intersect( [ 1 ], [ 1 , 1 ] ) = [ 1 , 1 ] |
|
deprecated.int.list.intersect( [ 5 ], [ 5 , 2 , -3 ] ) = [ 5 ] |
|
deprecated.int.list.intersect( [ 5 , 0 , null , 2 ], [ 5 , 2 , -3 , null ] ) = [ 5 , 2 , null ] |
deprecated.str.abrev
deprecated.str.abrev(Value - S, Starting Position - I, n Length (Min. 4) - I,B.I) |
|
Returns n first characters of a String from the beginning. Deprecated since version : 8.7.0 |
|
Parameters : |
|
Value - S |
Specify the string to abbreviate |
Starting Position - I |
Specify the start position. 1 is the position of the first character of the string |
n Length (Min. 4) - I,B.I |
Specify n length. Has to be superior or equal to 4 |
Return : S |
|
|
|
Examples : |
|
deprecated.str.abrev( "DataChain brings data back at the core of your business", 2, 50 ) = "DataChain brings data back at the core of your …" |
|
deprecated.str.abrev( "DataChain brings data back at the core of your business", 8, 50 ) = "…n brings data back at the core of your business" |
|
deprecated.str.abrev( "DataChain brings data back at the core of your business", 4, 12 ) = "DataChain…" |
|
deprecated.str.abrev( "DataChain brings data back at the core of your business", 10, 17 ) = "…brings data…" |
deprecated.str.date_from_xls
deprecated.str.date_from_xls(Serial number - S) |
|
Returns an ISO 8601 Date in String format corresponding to the serial number of Excel’s 1900 date system (number of days that have elapsed since 1st January 1900). Deprecated since version : 8.7.0 |
|
Parameters : |
|
Serial number - S |
Enter the serial number in Excel’s 1900 date system that corresponds to the desired date |
Return : Da |
|
|
|
Examples : |
|
deprecated.str.date_from_xls( "0" ) = 1899-12-30T00:00:00Z |
|
deprecated.str.date_from_xls( "1000" ) = 1902-09-26T00:00:00Z |
|
deprecated.str.date_from_xls( null ) = null |
deprecated.str.if
deprecated.str.if(Value - De,I,B.I,Da,S, Operator - CHOICE(S), Value - De,I,B.I,Da,S, Value if true - S, Value if false - S) |
|
Checks if condition is met and returns a value if result of condition is True, and another value if result is False. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - De,I,B.I,Da,S |
Specify string to process |
Operator - CHOICE(S) |
Specify operator used for test |
Value - De,I,B.I,Da,S |
Specify test to perform |
Value if true - S |
Specify the value to return if test is true |
Value if false - S |
Specify the value to return if test is false |
Return : S |
|
|
deprecated.str.list.create
deprecated.str.list.create(Value 1 - S, Value 2 - S) |
|
Creation of a list of String. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value 1 - S |
Input a value |
Value 2 - S |
Input a value (the ARGS function allows you to add n arguments) |
Return : LIST(S) |
|
|
|
Examples : |
|
deprecated.str.list.create( [ "Datachain" , "Maestro" , "DcCode" ] ) = [ "Datachain" , "Maestro" , "DcCode" ] |
deprecated.str.list.insert
deprecated.str.list.insert(List - LIST(S), Position - I, Value - S) |
|
Add an element to the list specified in argument 1. Array indices start at 1, or start from the end if index is negative. Index above array size appends the array, or prepends the array if index is negative, with null elements. Deprecated since version : 8.7.0 |
|
Parameters : |
|
List - LIST(S) |
Specify list of string to process |
Position - I |
Specify the insertion position in the list |
Value - S |
Specify the string to insert in the list |
Return : LIST(S) |
|
|
|
Examples : |
|
deprecated.str.list.insert( [ "is" , "nocode" , "and" , "lowcode" ], 1, "Datachain" ) = [ "Datachain" , "is" , "nocode" , "and" , "lowcode" ] |
|
deprecated.str.list.insert( [ "NAN" , "is" , "not" ], 5, "value" ) = [ "NAN" , "is" , "not" , null , "value" ] |
deprecated.str.list.intersect
deprecated.str.list.intersect(First list - LIST(S), Second list - LIST(S)) |
|
Returns the list of String in common between two String lists (can contain the same value several times). Deprecated since version : 8.7.0 |
|
Parameters : |
|
First list - LIST(S) |
Specify first list of strings |
Second list - LIST(S) |
Specify second list of strings |
Return : LIST(S) |
|
|
|
Examples : |
|
deprecated.str.list.intersect( [ "Datachain" , "Maestro" ], [ "Maestro" ] ) = [ "Maestro" ] |
|
deprecated.str.list.intersect( [ "Datachain" ], [ "Datachain" , "Datachain" ] ) = [ "Datachain" , "Datachain" ] |
|
deprecated.str.list.intersect( [ "Datachain" , null ], [ null ] ) = [ null ] |
deprecated.str.replace_null
deprecated.str.replace_null(Value - S, String replacing Null - S) |
|
Replaces a Null value by String value Deprecated since version : 8.7.0 |
|
Parameters : |
|
Value - S |
Specify value to process |
String replacing Null - S |
Specify string that replaces Null value |
Return : S |
|
|
|
Examples : |
|
deprecated.str.replace_null( "Dupont", "t" ) = "Dupont" |
|
deprecated.str.replace_null( null, "o" ) = "o" |
deprecated.str.to_date
deprecated.str.to_date(Value - S, Mask - CHOICE(S)) |
|
Parse date from String. Deprecated since version : 8.3.2 |
|
Parameters : |
|
Value - S |
Specify string to transform |
Mask - CHOICE(S) |
Specify reading mask |
Return : Da |
|
|