
reference.language.subtract.html Maven / Gradle / Ivy
Subtract expressions
Subtract expressions
Subtract expressions are used to subtract 2 values.
A subtract expression is a code fragment which produces a value, whose type is determined by the values being subtracted, and which can then be used as an input for other operations: print, write, method call and so forth.
A subtract expression has the form a - b
.
Subtracting Integer and Decimal values
Subtracting Integer and Decimal values returns an Integer value if both values are Integer, and a Decimal otherwise.
Subtracting Date and Period values
Subtracting Date and Period values returns a Date value, the Time section of the Period value is ignored.
Subtracting Date and Date values
Subtracting Date and Date values returns a Period value.
Subtracting Time and Period values
Subtracting Time and Period values returns a Time value, the Date section of the Period value is ignored.
Subtracting Time and Time values
Subtracting Time and Time values returns a Period value.
Subtracting DateTime and Period values
Subtracting DateTime and Period values returns a DateTime value.
Subtracting DateTime and DateTime values
Subtracting DateTime and DateTime values returns a Period value.
Subtracting Period and Period values
Subtracting Period and Period values returns a Period value.
Subtracting user defined values
Prompto supports subtracting user defined values. See categories for details.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy