Skip to content

Commit

Permalink
Implemented missing implicit cast to float from scalar double.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason McCampbell (Enthought, Inc) committed Mar 16, 2011
1 parent 32179df commit 4d5a280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numpy/NumpyDotNet/Scalar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,10 @@ public static implicit operator BigInteger(ScalarFloat32 i) {
return new BigInteger(i.value);
}

public static implicit operator Single(ScalarFloat32 i) {
return i.value;
}

public static implicit operator double(ScalarFloat32 i) {
return i.value;
}
Expand Down

0 comments on commit 4d5a280

Please sign in to comment.