Browse Source

globalization: fix complex parsing asymmetry bug introduced in aa4ec834

Signed-off-by: Christoph Ruegg <git@cdrnet.ch>
la-knuth
Christoph Ruegg 17 years ago
parent
commit
1219b46e1f
  1. 3
      src/Numerics/Complex.cs

3
src/Numerics/Complex.cs

@ -1211,7 +1211,8 @@ namespace MathNet.Numerics
double value = GlobalizationHelper.ParseDouble(ref token, format.GetCultureInfo());
// handle suffix imaginary symbol
if (token != null && String.Compare(token.Value, "i", StringComparison.OrdinalIgnoreCase) == 0)
if (token != null && (String.Compare(token.Value, "i", StringComparison.OrdinalIgnoreCase) == 0
|| String.Compare(token.Value, "j", StringComparison.OrdinalIgnoreCase) == 0))
{
if (imaginary)
{

Loading…
Cancel
Save