Utils.opposite()
Return the opposite of the number given as parameter
Parameters
Name | Type | Description | |
---|---|---|---|
1 | x | number |
Return value
number
the result
Usage
import {Utils} from '@lcluber/type6js';
let number = 2.568995;
let opposite = Utils.opposite(number);
console.log(opposite); //(-2.568995)