Skip to content
On this page

normalizeZero

ts
function normalizeZero(num: number): number

If the passed value is -0, returns 0. Returns the passed value otherwise.

Example

ts
num.normalizeZero(-0) // 0
num.normalizeZero(0) // 0