MCPcopy Create free account
hub / github.com/beanshell/beanshell / floatUnaryOperation

Method floatUnaryOperation

src/bsh/Primitive.java:747–764  ·  view source on GitHub ↗
(Float F, int kind)

Source from the content-addressed store, hash-verified

745 }
746
747 static float floatUnaryOperation(Float F, int kind)
748 {
749 float operand = F.floatValue();
750
751 switch(kind)
752 {
753 case PLUS:
754 return operand;
755 case MINUS:
756 return -operand;
757 case INCR:
758 return operand + 1;
759 case DECR:
760 return operand - 1;
761 default:
762 throw new InterpreterError("bad float unaryOperation");
763 }
764 }
765
766 static double doubleUnaryOperation(Double D, int kind)
767 {

Callers 2

unaryOperationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected