ArcGIS
字段计算器中的
python
函数
.
conjugate()
,
共轭复数
.denominator()
,
返回分母
.imag()
,
返回复数的虚数部分
.numerator()
,
返回分子
.real()
,
返回复数的实数部分
.
as_interger_ratio()
:
Return a pair of integers whose ratio is exactly equal to the original floa
t and with a positive denominator. Raises
OverflowError
on infinities and
a
ValueError
on NaNs.
.fromhex()
:
Class method to return the float represented by a hexadecimal string
s
.
The string
s
may have leading and trailing whitespace.
.hex()
:
Return a representation of a floating-point number as a hexadecimal str
ing. For finite floating-point numbers, this representation will always inc
lude a leading
0x
and a trailing
p
and exponent.