Closed CptWesley closed 5 years ago
You are right, this was not intentional and I'm ashamed that I did not create a test case for that.
But before I accept this PR - since ParseDouble() does all the checking, I noticed that logic in AsScalar() is redundant. Could you refactor it?
Sure thing
Very nice, thank you!
New nuget release will be created later this week.
Why?
Currently when a result from Octave is being parsed as a scalar
-Inf
becomesdouble.MinValue
. However, when-Inf
is within a matrix or vector it becomesdouble.MaxValue
. I doubt this was intentional and I assumed it was supposed to bedouble.MinValue
as well, to be able to differentiate fromInf
.What?
ParseDouble()
method.OctaveStringExtensions
class, which include cases forInf
and-Inf
.