Package com.ptc.core.meta.common
Class FloatingPoint
java.lang.Object
java.lang.Number
com.ptc.core.meta.common.FloatingPoint
- All Implemented Interfaces:
Externalizable,Serializable,Comparable,Evolvable
Attribute content wrapper for Floating Point. Each FloatingPoint content will have a double value and a int precision.
Those attributes can only be set from the constructor so instances are immutable.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic FloatingPointadd(FloatingPoint operandOne, FloatingPoint operandTwo) Adds the operands and returns the sum.Methods inherited from class java.lang.Number
byteValue, shortValue
-
Method Details
-
add
Adds the operands and returns the sum.
Supported API: true- Parameters:
operandOne- The first operand to sum.operandTwo- The second operand to sum.- Returns:
- The sum of the addition. May return null depending on the inputs.
-