Alignant
`Lol I told you IDK
I just thought it could be the case
Ariana
Typically i just give a lower bound
Alignant
Typically i just give a lower bound
Those numerics floats are so tricky ^-^
Alignant
And you know what? Python allows you comparing them with ==
Ariana
I prefer storing as exact but may be difficult
Ariana
And you know what? Python allows you comparing them with ==
not sure how python stores their values tbh but there is probably some limit when it goes yeah it’s probably equal
Alignant
That's the point of it
Alignant
Don't worry about data, let me worry about data
Anonymous
Hi
Alignant
@linuxer4fun Btw, I may have been saying it in a stupid way, but I meant this https://en.wikibooks.org/wiki/X86_Assembly/Intrinsic_Data_Types "Originally, floating point was not part of the main processor, requiring the use of emulating software. However, there were floating point coprocessors that allowed operations on this data-type, and starting with the 486DX, were integrated directly with the CPU. " Therefore, CPU supports floats on a hadware level And I also included flags cuz it's... you get it
Alignant
Strictly speaking, assembly has no predefined data types like higher-level programming languages.
"That said, one can group data in assembly into two categories: integer and floating point." I am the one
Ariana
._.
BinaryByter
word dword qword
those are sizes
BinaryByter
"That said, one can group data in assembly into two categories: integer and floating point." I am the one
That said, one can group data in assembly into two categories: integer and floating point. While you could load a floating point value into a register and treat it like an integer, the results would be unexpected, so it is best to keep them separate. please don't quote ouf ot context
Ariana
they arent rlly data types but are the most similar
Ariana
yeah
BinaryByter
a word is the normal CPU read size
Ariana
double and quadruple
BinaryByter
but you could, in theory, make yourself variables that are one bit big
BinaryByter
double and quadruple
a qword is really like reading four times a word
Ariana
Yeah
Alignant
this is why you suck
Well, in your world I can say I type 560 chars per second. But the result is unexpected
Ariana
floats are stored by ieee754 in memory
BinaryByter
BinaryByter
period
BinaryByter
ieee754 standard*
there are many float standards, the common one is the ieee representation
BinaryByter
@qneko wrote a lib for floats where he stores the result of 1/float
Alignant
they are stored as binary
So, you would agree it's another data type if it was stored... not in binary? :D
Ariana
wut
Ariana
floats are like just fancy scientific notation
Alignant
they are stored as binary
You said they are stored in binary... does that define a data type?
BinaryByter
You said they are stored in binary... does that define a data type?
a datatype is a pattern by which the compiler knows how to associate a memory map to "something"
BinaryByter
better?
Alignant
BinaryByter
which is my point from the fucking beginning
Alignant
which is my point from the fucking beginning
My point was that... we see word of bits It can be an integer(signed and unsigned), a float, or a bunch of flags And that's pretty it
Ariana
*a byte
Ariana
wait
Alignant
*a byte
4 bytes of bits, lol
Ariana
umm question
Alignant
*a byte
I said word because you can't really store something floaty in a byte
Ariana
First bit - sign Next 4 bits - coefficient Last 3 bits - exponent typically floats and ints uses 4 bytes(or ieee754 double precision that is 8 bytes)
Ariana
coefficient and exponent both are a bit bigger 😉
If we need to somehow stuff a float in 1 byte
BinaryByter
Nice idea for a library, but makes no sense
ITS LITTERRALLY WHAT A FLOAT IS YOU DUMBFUCK
Ariana
for astronomers: First bit - sign Last 7 bits - exponent as a questiobable signed integer xd
Alignant
ITS LITTERRALLY WHAT A FLOAT IS YOU DUMBFUCK
sign + 4 bits + 3 bits is 1 byte Nice idea for a library is to make a float type that uses 1 byte
Ariana
oh rite
BinaryByter
xD
BinaryByter
let's make 9 bit floats
Roxifλsz 🇱🇹
Angry maxi is angry
BinaryByter
Angry maxi is angry
implied by the name
Ariana
let's make 9 bit floats
lets make characters 7 bits
Roxifλsz 🇱🇹
BinaryByter
lets make characters 7 bits
just to trigger the little dwarf who creates the bitshift masks in the processor
Ariana
XD
BinaryByter
Wdym?
angry maxi can only be angry
klimi
yes
BinaryByter
KLIMIIII ❤️
Roxifλsz 🇱🇹
angry maxi can only be angry
But is maxi always angry?
Roxifλsz 🇱🇹
BinaryByter
which is why calling me angry is a stretch
BinaryByter
i'm maxi :D