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

PI
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
pi() as:'pi_col'

pi()


Output:
For each row, generate Returns the value of pi.

D s
snippetSyntax

...

In the following example, the source is simply the source column, and the pi column is generated by the PI function:

d-

...

trans
RawWrangletrue
p03Value'pi'
Typestep
WrangleTextderive type:single value:

...

pi() as:'pi'
p01NameFormula type
p01ValueSingle row formula
p02NameFormula
p02Valuepi()
p03NameNew column name
SearchTermNew formula

sourcepi
A

3.1415926535897932

B

3.1415926535897932

C

3.1415926535897932

D

3.1415926535897932

...