Converts a number or bigint N to negative. If N is already negative, it returns itself.
N
ToNegative<5> // -5ToNegative<0> // 0ToNegative<-5> // -5 Copy
ToNegative<5> // -5ToNegative<0> // 0ToNegative<-5> // -5
Converts a number or bigint
N
to negative. IfN
is already negative, it returns itself.