mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-09 07:56:12 +02:00
content(docs): clean up Python operators
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
ac8a7a6a76
commit
c76f24f97e
@@ -39,22 +39,12 @@ The subtraction operator is used to subtract two numeric values, subtracting the
|
|||||||
|
|
||||||
### Division Operator - `/`
|
### Division Operator - `/`
|
||||||
|
|
||||||
The division operator is used to divide two numeric values, dividing the value on the left hand side by the one on the right hand side (can be hex, integers or floats), returning a base 10 number float.
|
|
||||||
|
|
||||||
```python
|
|
||||||
8 / 2 # equals 4.0
|
|
||||||
8 / 3 # 2.6666666666666665
|
|
||||||
10 / 1.1 # equals 9.09090909090909
|
|
||||||
0x200 / 0x10 # 32.0
|
|
||||||
```
|
|
||||||
|
|
||||||
### Division Operator - `/`
|
|
||||||
|
|
||||||
The division operator is used to divide two numeric values, dividing the operand on the left hand side by the operand on the right hand side (can be hex, integers or floats), returning a base 10 number float.
|
The division operator is used to divide two numeric values, dividing the operand on the left hand side by the operand on the right hand side (can be hex, integers or floats), returning a base 10 number float.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
8 / 2 # equals 4.0
|
8 / 2 # equals 4.0
|
||||||
8 / 3 # 2.6666666666666665
|
8 / 3 # 2.6666666666666665
|
||||||
|
10 / 1.1 # equals 9.09090909090909
|
||||||
0x200 / 0x10 # 32.0
|
0x200 / 0x10 # 32.0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user