[DiscordArchive] Still with x -= ?
[DiscordArchive] Still with x -= ?
Archived author: MaxtorCoder • Posted: 2024-05-23T21:48:22.385000+00:00
Original source
Still with x -= ?
Archived author: Widget • Posted: 2024-05-23T21:49:24.869000+00:00
Original source
yep
Archived author: Widget • Posted: 2024-05-23T21:52:30.449000+00:00
Original source
```js
.....
if ((xBytesBuffer[0] & 0x80) != 0) {
var fix = Buffer.alloc(65);
fix[0] = 1;
x = x.minus(...fixbuffer to bigint...);
}
if (x.isNegative()) {
return x.add(this.N.minus(1));
}
return x;
```
i have this in my el stupido language
Archived author: MaxtorCoder • Posted: 2024-05-23T21:53:38.961000+00:00
Original source
Ait
Archived author: Tea • Posted: 2024-05-23T21:53:52.985000+00:00
Original source
im not sure about the 64 to 0 change
Archived author: Tea • Posted: 2024-05-23T21:54:05.100000+00:00
Original source
but you do need the additional negative check
ES_Think:639363477458255874>
Archived author: Widget • Posted: 2024-05-23T21:54:19.209000+00:00
Original source
<
ES_Think:639363477458255874>
Archived author: Tea • Posted: 2024-05-23T21:54:19.419000+00:00
Original source
(for c#)
ES2_Shrug:513352546341879808>![[Image: image.png?ex=690c70cd&is=690b1f4d&hm=a04...03f0d99a7&]](https://cdn.discordapp.com/attachments/376074396915335170/1243321683998277892/image.png?ex=690c70cd&is=690b1f4d&hm=a048c040360e6f014c3c9c61fc45a1f6307143b572455ed2e3a8c1103f0d99a7&)
Archived author: Widget • Posted: 2024-05-23T21:56:29.317000+00:00
Original source
honestly no clue about this stuff, but first byte makes number go higher so i guess it works<
ES2_Shrug:513352546341879808>
![[Image: image.png?ex=690c70cd&is=690b1f4d&hm=a04...03f0d99a7&]](https://cdn.discordapp.com/attachments/376074396915335170/1243321683998277892/image.png?ex=690c70cd&is=690b1f4d&hm=a048c040360e6f014c3c9c61fc45a1f6307143b572455ed2e3a8c1103f0d99a7&)
Archived author: Widget • Posted: 2024-05-23T21:56:49.799000+00:00
Original source
LE BE? idk