HomeManualTopicsTypesSymbols
std::dec
subtracts the number 1 from the specified value
Parameter
- value
- the value to decrease
Result
- value
- the value decreased by 1
Example
println! dec(123)
Output
122
Topic
Math
See also
std::inc |
adds the number 1 to the specified value |
std::minus |
subtract two numbers of any kind |