Email or username:

Password:

Forgot your password?
Top-level
Csepp 🌢

@neauoire So that's what they are called. But what's the whole number in memory? Like, what's the biggest number it can represent, and what happens in case of an overflow?

4 comments
Devil Lu Linvega

@csepp fractions are made of two shorts, it'll overflow after 65k

Devil Lu Linvega

@csepp it'll wrap around in case of an overflow.

Csepp 🌢

@neauoire Thanks! Well, not ideal but I guess fine for a toy. UwU

Devil Lu Linvega

@csepp it's really rare that I noodling around with numbers higher than 60 thousands, but I might add a warning or something at some point if that starts bothering me.

Go Up