Utils.opposite()

Return the opposite of the number given as parameter

Parameters

NameTypeDescription
1xnumber

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)