Interactive Angular 19 demo for @sda/notification-elements-ui with 6 sections: Bell & Feed, Notification Center, Inbox, Comments & Threads, Mention Input, and Full-Featured layout. Includes mock data, dark mode toggle, and real-time event log. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
598 B
JavaScript
18 lines
598 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.decodeF16 = void 0;
|
|
const pow = Math.pow;
|
|
const decodeF16 = (binary) => {
|
|
const exponent = (binary & 0x7c00) >> 10;
|
|
const fraction = binary & 0x03ff;
|
|
return ((binary >> 15 ? -1 : 1) *
|
|
(exponent
|
|
? exponent === 0x1f
|
|
? fraction
|
|
? NaN
|
|
: Infinity
|
|
: pow(2, exponent - 15) * (1 + fraction / 0x400)
|
|
: 6.103515625e-5 * (fraction / 0x400)));
|
|
};
|
|
exports.decodeF16 = decodeF16;
|
|
//# sourceMappingURL=f16.js.map
|