minus
minus(n_op) =>n_result
Description
Returns the negative of a number. Prefix form of the - unary operator.
Arguments
Value Returned
Examples
minus( 10 )
=> -10
minus( -1.0 )
=> 1.0
minus( -0 )
=> 0
Related Topics
Return to top
minus(n_op) =>n_result
Returns the negative of a number. Prefix form of the - unary operator.
minus( 10 )
=> -10
minus( -1.0 )
=> 1.0
minus( -0 )
=> 0