[DiscordArchive] and the question is how can I convert float to the similar thing?
[DiscordArchive] and the question is how can I convert float to the similar thing?
Archived author: Skarn • Posted: 2018-06-03T21:16:30.436000+00:00
Original source
and the question is how can I convert float to the similar thing?
Archived author: Skarn • Posted: 2018-06-03T21:16:33.093000+00:00
Original source
to write it back to file
Archived author: schlumpf • Posted: 2018-06-03T21:18:34.100000+00:00
Original source
just reverse the operations? Maths.
Archived author: Deleted User • Posted: 2018-06-03T21:19:27.079000+00:00
Original source
multiply the fraction with (1 << decimalBits)
Archived author: Deleted User • Posted: 2018-06-03T21:19:42.289000+00:00
Original source
clamp the integral part to [0, (1 << integralBits))
Archived author: Deleted User • Posted: 2018-06-03T21:19:47.301000+00:00
Original source
decide sign accordingly
Archived author: Deleted User • Posted: 2018-06-03T21:22:36.599000+00:00
Original source
then bit shit everything together