Tip lookup table

0
alb_d  posted on  2021-08-17

For other people like me whose brains hurt doing arithmetic, I made this lookup table to calculate how much to tip. The requirements for the lookup table are:

Amount..Tip
0-5.......1
5-8.......1
8-10....1.5
10-14.....2
14-20.....3
20-25.....4
25-30.....5
30-40.....6
40-50.....8
50-60....10


0
hoperyto  commented on  2022-02-15

A generative model of this table is more useful for folks (like me) whose memory is worse than their arithmetic. By example

50 -> 5 -> 10
40 -> 4 -> 8
30 -> 3 -> 6
25 -> 2.5 -> 5
14 -> 1.4 -> 2.8 -> 3
8 -> 0.8 -> 1.6 -> 1.5

The tip amount is an approximate, I'll usually just round up the total (bill + tip) amount to the next whole number. So calculating the tip at <=0.1 precision isn't required


0
alb_d  commented on  2022-02-17

I used to do this exact calculation before. Was very taxing for my low-power ALUs 😂.