Tools
Read the formula, counterexample and Number limits ↗
Floating-point integer check
Compare a cosine gate with Number.isInteger in your browser.
Inputs and results are computed in this browser. They are not uploaded or included in analytics.
Plain finite JavaScript Number decimals only: an optional minus sign, digits and one decimal point. No exponent, hexadecimal, grouping separators, units or expressions. Up to 80 characters.
Reproducible presets
JavaScript is required. The button becomes available after the tool loads; refresh if this message remains.
Comparison result
- Raw decimal
- Parsed Number
Cosine gate
Math.floor(Math.abs(Math.cos(Math.PI × x)))
- |cos(π × x)|
- Gate output
Number.isInteger
Number.isInteger(x)
- Safe integer