You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,16 @@ A WPF Converter class that does it all
7
7
8
8
9
9
10
+
Installation:
11
+
-------------
12
+
13
+
`MathConverter` is available on [NuGet](https://www.nuget.org/packages/MathConverter/)
14
+
15
+
To install MathConverter, run the following command in the [Package Manager Console](https://docs.microsoft.com/en-us/nuget/tools/package-manager-console):
16
+
17
+
```
18
+
PM> Install-Package MathConverter
19
+
```
10
20
11
21
12
22
What is MathConverter?
@@ -352,7 +362,7 @@ Just like in C#, you can embed strings within in an interpolated string. So `Mat
352
362
Operators
353
363
---------
354
364
355
-
Theternaryconditionaloperatorisjustoneofseveraloperatorswecanuse. Ingeneral, theoperatorsusedinMathConverterwillfollow [thestandardC# rulesregardingoperatorordering](https://msdn.microsoft.com/en-us/library/aa691323(v=vs.71).aspx), meaning you can usually expect it to behave just like C#. But there are a few notable exceptions:
365
+
Theternaryconditionaloperatorisjustoneofseveraloperatorswecanuse. Ingeneral, theoperatorsusedinMathConverterwillfollow [thestandardC# rulesregardingoperatorordering](https://docs.microsoft.com/en-us/dotnet/articles/csharp/language-reference/operators/), meaning you can usually expect it to behave just like C#. But there are a few notable exceptions:
356
366
357
367
*Since `MathConverter` isspecificallydesignedtoperformmathcalculations, thecaret (`^`) operatordoesnotperformthe `XOR` operation. Rather, itisanexponentsymbol. Ituses [`System.Math.Pow`](https://msdn.microsoft.com/en-us/library/system.math.pow(v=vs.110).aspx) to evaluate expressions, and its precedence is just above multiplicative operations (`*`, `/`, and `%`).
358
368
*Themultiplicationoperatorcanoftenbesafelyommitted. A `ConverterParameter` valueof `xyz` willevaluateto `x*y*z`. Theparameter `x2y` willevaluateto `x^2*y` (orequivalently, `xxy` or `x*x*y`). Similarly, `2x3` isequivalentto `2*x^3` or `2*x*x*x`. Notethat `x(2)` isequivalentto `x*(2)`, inthesamewaythat `x(y+z)` isequivalentto `x*(y+z)`.
@@ -364,7 +374,6 @@ The ternary conditional operator is just one of several operators we can use. In
*The `??` operatorisnotlistedin [thestandardC# rulesforoperatorordering](https://msdn.microsoft.com/en-us/library/aa691323(v=vs.71).aspx), so `MathConverter` does not support it. See the `isnull` function in the next section.
368
377
369
378
370
379
@@ -373,7 +382,7 @@ The ternary conditional operator is just one of several operators we can use. In
`MathConverter` evaluatesmostofitsvaluesusingthe `dynamic` type. So `x+y` willyield `null` if `x=3` and `y=null`. However, if `x="Hello World"` and `y=null`, `x+y` willyield `"Hello World"`.
0 commit comments