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 b913404 commit 2c0ca5bCopy full SHA for 2c0ca5b
src/main/java/net/imglib2/algorithm/math/execution/NumericSource.java
@@ -11,7 +11,10 @@ public class NumericSource< O extends RealType< O > > implements OFunction< O >
11
public NumericSource( final O scrap, final Number number )
12
{
13
this.value = scrap;
14
- this.value.setReal( number.doubleValue() );
+ if ( number instanceof Float )
15
+ this.value.setReal( number.floatValue() );
16
+ else
17
+ this.value.setReal( number.doubleValue() );
18
}
19
20
@Override
0 commit comments