539
Java (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] MarekKnapek@programming.dev 37 points 1 year ago

Makes sense, how would you represent floor(1e42) or ceil(1e120) as integer? It would not fit into 32bit (unsigned) or 31bit (signed) integer. Not even into 64bit integer.

[-] natanael@lemmy.ml 7 points 1 year ago

BigInt (yeah, not native everywhere)

[-] 1rre@discuss.tchncs.de 3 points 1 year ago

I feel this is worse than double though because it's a library type rather than a basic type but I guess ceil and floor are also library functions unlike toInt

this post was submitted on 05 Aug 2023
539 points (92.4% liked)

Programmer Humor

19503 readers
1127 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS