For AI agents: the complete documentation index is available at /tc39-atlas/en/llms.txt, the full documentation bundle is available at /tc39-atlas/en/llms-full.txt, and this page is available as Markdown at /tc39-atlas/en/proposals/stage/unstaged/proposal-Math.signbit.md.
  • English
  • Math.signbit: IEEE-754 sign bit ?

    Proposal details
    Proposal overview

    This proposal introduces Math.signbit to determine the sign bit of an IEEE-754 number, addressing cases where existing methods like Math.sign fail to distinguish negative zero from positive zero. It is currently in an early stage, with a polyfill available in core-js.

    Note

    The README below comes from the upstream repository and may contain outdated stage or status metadata. Use the proposal details above as the current source of truth.

    Math.signbit proposal

    Read the proposal for Math.signbit.

    Build status: Build Status

    A polyfill is available in the core-js library. You can find it in the ECMAScript proposals section.