3 ms·
A programmer walks into a bar and orders 1.00000000001000000...897175 root beers. The bartender says, "I'll have to charge you extra; that's a root beer float".
by aristus 14y ago
A programmer walks into a bar and orders 1.00000000001000000...897175 root beers. The bartender says, "I'll have to charge you extra; that's a root beer float". And the programmer says, "In that case, make it a double".
- nickknw 14y agoAs someone who just recently tangled with floating point error, that was hilarious!
- andyidsinga 14y agogood laughs!