We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef1b133 commit b30fc9aCopy full SHA for b30fc9a
src/nitypes/scalar.py
@@ -64,7 +64,7 @@ class Scalar(Generic[TScalar_co]):
64
results in inequality.
65
- Comparison of scalar objects with different units results in inequality.
66
67
- Examples:
+ Here are a few examples:
68
69
>>> Scalar(5.0, 'V') == Scalar(5.0, 'V') # Numeric scalars with identical values and units
70
True
@@ -93,7 +93,7 @@ class Scalar(Generic[TScalar_co]):
93
- Comparison of scalar objects with compatible types and different units
94
is not permitted and will raise a ``ValueError`` exception.
95
96
97
98
>>> Scalar(5.0, 'V') < Scalar(10.0, 'V') # Numeric scalars with identical units
99
0 commit comments