Non-trapping float-to-int conversion (WebAssembly)
Widely available since 2024-04-25
Saturating floating-point to integer conversion operators return the maximum or minimum integer value on overflow instead of trapping.
Browser support (view on caniuse.com)
- Chrome 75 Released on 2019-06-04
- Chrome Android 75 Released on 2019-06-04
- Edge 18 Released on 2018-10-02
- Firefox 64 Released on 2018-12-11
- Firefox for Android 64 Released on 2018-12-11
- Safari 15.1 Released on 2021-10-25
- Safari on iOS 15.1 Released on 2021-10-25