Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version next

...

D s
snippetBasic

Numeric literal example:

D code

derive type:single value: POW(10,3)

...

Output: Returns the value of 10 3, which is 1000.

Column reference example:

D code

derive type:single value: POW(MyValue,2) as: 'sqred_MyValue'

...

Output: Returns the value of the MyValue column raised to the power of 2 (squared). 

D s
snippetSyntax

D code

derive type:single value: POW(base_numeric_value, exp_numeric_value)


ArgumentRequired?Data TypeDescription
base_numeric_valueYstring, decimal, or integerName of column or Decimal or Integer literal that is the base value to be raised to the power of the second argument
exp_numeric_valueYstring, decimal, or integerName of column or Decimal or Integer literal that is the power to which to raise the base value

...