Re: Float swap using bswap produces different values

2024-10-14 Thread user1234 via Digitalmars-d-learn
On Monday, 14 October 2024 at 20:38:38 UTC, user1234 wrote: On Monday, 14 October 2024 at 15:59:07 UTC, vinoB wrote: Hi All, Request your help in understanding why the below code is producing different outputs, code 1 output: 4294966806, code 2/3 output: 50331648, and which one is the correct

Re: Float swap using bswap produces different values

2024-10-14 Thread user1234 via Digitalmars-d-learn
On Monday, 14 October 2024 at 15:59:07 UTC, vinoB wrote: Hi All, Request your help in understanding why the below code is producing different outputs, code 1 output: 4294966806, code 2/3 output: 50331648, and which one is the correct output. [...] `cast(unint)` of a `float` does truncation