Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Read up on absolute basics about floating point numbers, their binary representation and how digital computers even work.
-
@theabbie A search engine will already do when searching for floating point issues. No need to buy dead trees.
-
C0D4681382y@Fast-Nop but that crisp, glossy feeling of dead trees, and that "new" smell are incentive enough
-
@Fast-Nop I think it's really difficult to bump into an endianness issue these days, in most languages all operations are defined to behave according to what you'd expect from a particular endianness such that pretty much the only way you can get one is by mixing languages and sharing binary.
-
C0D4681382y@Fast-Nop that's a stroke of bad luck for another day.
The odds of having to deal with memory allocation anytime soon in Python, when we are still on the first page of data types is a long shot at best.
Let's not hurt the guy... to much... this early on 😂 -
@lbfalvy Back then, I slammed into that when I tried to save binary data on one system and loading it on one with the other endianess. The problem in my load/save routine was that I just dumped the record without byte-wise serialisation.
Most machines today are little endian, but since network order is big endian, that's the place where confusion can arise. -
@kwilliams i have a colleague who declares floats and uses them as natural numbers :v
-
@Fast-Nop @theabbie @darksideofyay @kwilliams @Anakata
https://0.30000000000000004.com/
Spread the joy, let the heralds sing the epiphany of representation of numbers...
(Bookmark the site, this topic comes up every now and then... Again and again. XD)
Related Rants
What the fuck is this?! I need answers right now!!!
question
weird
float
python3