https://github.com/dcodeio/wasm2js_i64tof32
wait, what?
https://github.com/dcodeio/wasm2js_i64tof32
Last synced: 3 months ago
JSON representation
wait, what?
- Host: GitHub
- URL: https://github.com/dcodeio/wasm2js_i64tof32
- Owner: dcodeIO
- Created: 2020-08-09T14:42:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T02:53:00.000Z (over 5 years ago)
- Last Synced: 2025-02-07T15:15:46.444Z (11 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Imprecise i64 to f32 in JS
```js
Math.fround(Number(18446743523953737727n));
```
!=
```c
(float)18446743523953737727ULL;
```
For full context, see: https://github.com/WebAssembly/binaryen/pull/3024
## Instructions
- `git clone https://github.com/dcodeIO/wasm2js_i64tof32.git`
- `cd wasm2js_i64tof32`
- `npm install`
- `npm test`
- Improve [assembly/index.ts](./assembly/index.ts)
- `npm test` again