diff --git a/README.md b/README.md index 14b0e83..aa2e18b 100644 --- a/README.md +++ b/README.md @@ -405,9 +405,15 @@ Format Numbers ------- +```python + = int() # Or: math.floor() + = float() + = complex(real=0, imag=0) # Or: + j +``` + ### Basic Functions ```python - = pow(, ) # Or: ** + = pow(, ) # Or: ** = abs() = round() = round(, ±ndigits) @@ -1468,7 +1474,7 @@ b'\x00\x01\x00\x02\x00\x00\x00\x03' Array ----- -**List that can hold only elements of predefined type. Available types are listed above.** +**List that can hold only elements of predefined type. Available types and their sizes are listed above.** ```python from array import array diff --git a/index.html b/index.html index 363bae2..72daf40 100644 --- a/index.html +++ b/index.html @@ -475,8 +475,12 @@ Point(x=1, y=2 {90:b} # '1011010'

#Numbers

+
<int>     = int(<float/str/bool>)    # Or: math.floor(<float>)
+<float>   = float(<int/str/bool>)
+<complex> = complex(real=0, imag=0)  # Or: <real> + <real>j
+

Basic Functions

-
<num>  = pow(<num>, <num>)  # Or: <num> ** <num>
+
<num>  = pow(<num>, <num>)           # Or: <num> ** <num>
 <real> = abs(<num>)
 <int>  = round(<real>)
 <real> = round(<real>, ±ndigits)
@@ -1281,7 +1285,7 @@ db.commit()
 
  • 'd' - double (8)
  • #Array

    -

    List that can hold only elements of predefined type. Available types are listed above.

    +

    List that can hold only elements of predefined type. Available types and their sizes are listed above.

    from array import array
     <array> = array('<typecode>' [, <collection>])