MCPcopy
hub / github.com/django/django / Pi

Class Pi

django/db/models/functions/math.py:131–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131class Pi(NumericOutputFieldMixin, Func):
132 function = "PI"
133 arity = 0
134
135 def as_oracle(self, compiler, connection, **extra_context):
136 return super().as_sql(
137 compiler, connection, template=str(math.pi), **extra_context
138 )
139
140
141class Power(NumericOutputFieldMixin, Func):

Calls

no outgoing calls