File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/com/marginallyclever/nodegraphcore/nodes/math Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111 */
1212public class Ceil extends Node {
1313 private final Input <Number > a = new Input <>("decimal" ,Number .class ,0 );
14- private final Output <Number > c = new Output <>("whole number" ,Number .class ,0 );
14+ private final Output <Integer > c = new Output <>("whole number" ,Integer .class ,0 );
1515
1616 /**
1717 * Constructor for subclasses to call.
@@ -24,6 +24,6 @@ public Ceil() {
2424
2525 @ Override
2626 public void update () {
27- c .send (Math .ceil (a .getValue ().doubleValue ()));
27+ c .send (( int ) Math .ceil (a .getValue ().doubleValue ()));
2828 }
2929}
Original file line number Diff line number Diff line change 1111 */
1212public class Floor extends Node {
1313 private final Input <Number > a = new Input <>("decimal" ,Number .class ,0 );
14- private final Output <Number > c = new Output <>("whole number" ,Number .class ,0 );
14+ private final Output <Integer > c = new Output <>("whole number" ,Integer .class ,0 );
1515
1616 /**
1717 * Constructor for subclasses to call.
@@ -24,6 +24,6 @@ public Floor() {
2424
2525 @ Override
2626 public void update () {
27- c .send (Math . floor ( a .getValue ().doubleValue () ));
27+ c .send (a .getValue ().intValue ( ));
2828 }
2929}
You can’t perform that action at this time.
0 commit comments