<sign>

Returns the sign of a number: -1, 0, or 1. Useful for conditional calculations.

Quick example

.sign { color: calc(sign(-5) * 1); }

<sign> Browser Support

Newly availableSince 202558% global usage

Since 2025 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Works in all modern browsers. May need a fallback for older browsers.

138+
118+
15.4+
138+
ESC