chickadee » nutils » dec!

inc! NUMBER AMTsyntax
dec! NUMBER AMTsyntax
  • in - NUMBER - object with numeric value to increment/decrement
  • in - AMT - optional. If given, the amount to increment/decrement number. Default is 1.
  • returns: the resulting numeric value to which the input NUMBER object is also set.
 (import nutils)
 (define n 24)
 (define p 43.5)
 (inc! n) ;; => 25
 n ;; => 25
 (dec! p 22.8) ;; => 20.7
 p ;; => 20.7