Skip to content

Math.Dec

Name - Description Default Type
<input> The float or integer (or sequence of floats or integers) to decrease by 1. Any
<output> The input decreased by 1. Any
Value The value to apply the operation to. none Var(Int)Var(Int2)Var(Int3)Var(Int4)Var(Int8)Var(Int16)Var(Float)Var(Float2)Var(Float3)Var(Float4)Var(Color)Var([Any])

Decreases the input by 1.

Details

This shard decrements the :Value parameter by 1.

The :Value parameter should be a variable that holds a valid numeric value.

See also

Examples

1
2
3
4
5
6
7
 10.0 >= .mutable
(Math.Dec
 ;:Value
 .mutable)
.mutable (Log)

(Assert.Is 9.0 true)