logoalt Hacker News

lukasluegtoday at 10:21 AM7 repliesview on HN

Apparently what used to be `GB of storage consumed` is confused with `Bytes of storage consumed`, leading to a cool off by 2*30 error.

> You're right to question my calculation. The MCP server failed to connect when I tried to look up the field definition. I guessed instead of validating. This is on me. But look at all the revenue!


Replies

VulgarExigencytoday at 3:02 PM

The user is asking me to calculate how much money they should charge their customer. The values they've given me are 0.45, 1.67, and 2.50. This is 2.50 + 1.67 + 0.45 = 4.62, but it could be any other number. Perhaps we should be concatenating the numbers instead. Wait! The . could also mean multiplication. 0 . 45 . 1. 67 . 2 . 50 = 3015000. But wouldn't multiplying by 0 zero it out? That can't be right, we wouldn't be charging anything. So 3015000 must be correct.

You should charge your customer 3015000 thousand dollars.

show 2 replies
ghurtadotoday at 3:32 PM

> You're right to question my calculation.

Literally impossible to tell whether this is parody or an actual response any longer.

I challenge anyone to write something so stupid that an LLM couldn't possibly respond with it. I don't believe such limit exists.

ihateolivestoday at 4:25 PM

Just today I gave my local agent a CSV which listed a bunch files with of human readable size units and asked it to count rows in each GB range. Sounds simple enough but it completely miscalculated, because it parsed MB as GB for some reason. In hindsight it would've be quicker just to do it in Excel or something.

show 2 replies
leugimtoday at 2:43 PM

Oh great so 2*30=60 he only owes 28.3$ million... hehe

I guess you wanted to say 2^30 which makes 1.5$

show 2 replies
stefan_today at 2:42 PM

Vibecoded the billing system, raised revenue 9000%. Great for that promo package.

poly2ittoday at 4:54 PM

This error could be fixed with better typing. If you compute on GiB in a billing system, make sure it can only ever be mutated with a GiB type!

raverbashingtoday at 2:45 PM

AI slop. Or just a distracted dev

show 2 replies