Trees | Indices | Help |
|
---|
General floating point formatting functions.
Functions: fix(x, digits_behind) sci(x, digits_behind)
Each takes a number or a string and a number of digits as arguments.
Parameters: x: number to be formatted; or a string resembling a number digits_behind: number of digits behind the decimal point
re.compile(r'^(
[
-\+]
?
)
0*
(
\d*
)
(
(?:
\.\d*
)
?
)
(
(
[
eE]
[
-\+]
...
Imports: re
Format x as [-]ddd.ddd with 'digs' digits after the point and at least one digit before. If digs <= 0, the point is suppressed.
Format x as [-]d.dddE[+-]ddd with 'digs' digits after the point and exactly one digit before. If digs is <= 0, one digit is kept and the point is suppressed.
re.compile(r'^(
[
-\+]
?
)
0*
(
\d*
)
(
(?:
\.\d*
)
?
)
(
(
[
eE]
[
-\+]
?
\d+
)
?
)
$')
Trees | Indices | Help |
|
---|