Armageddon General Discussion Board

General => Code Discussion => Topic started by: JackGibbons on January 22, 2016, 10:22:21 AM

Title: Bank OCD and deposit math
Post by: JackGibbons on January 22, 2016, 10:22:21 AM
This isn't really a request for a change, but just a question of curiosity/advice.

I was away for a while but have returned, and discovered the bank gold sink code. Apparently it used to be on withdrawal which was annoying when you wanted a specific amount and had to do math, and now it's on deposit instead. Okay. Am I one of the few people who likes to round their bank balances to the nearest small and just keep the random slush on hand? I find it easier to remember how much I have in there, especially if I round to the 500s as well depending on how much I want to risk/encumber myself with.

So, the simplest way to still achieve targeted deposit amounts seems to be to take the amount I want to increase it by, divided by the complement of my rate. e.g. if my rate is 5% (2k - 5k post-transaction balance), then the complement is 95%, so I get

D = I/0.95, where D= Deposit amount to put on command line, I = amount that my bank balance Increases by.

And then it would be D = I/0.90 when the end result is over 5000, etc.

Has anyone figured out, though, how it handles the rounding? I sometimes get end results like 3799 instead of 3800, etc, and it makes my OCD (remember the thread title?) sad. It looks like it might take a FLOOR command. e.g., if you add 316 to 3200 in the hopes of getting 3500, you get 3501, despite 5% of 316 being 15.8. It looks like it might be a FLOOR() function (chop off the decimal)

It would be cool if you could have a separate deposit command that increments the balance by a fixed amount and takes whatever is needed out of the coins in your hands (and rejects if you don't have enough), but I promised it isn't a request, and there are more important things to do. Has anyone maybe made a google docs spreadsheet already for people who prefer to think in fixed-deposit terms like me, so I don't have to re-invent the wheel?

Thanks.
Title: Re: Bank OCD and deposit math
Post by: Kyviantre on January 22, 2016, 01:30:16 PM
Oooh, I would like the "I want to deposit 500 sid into the bank, please can you take the amount of coins that would give me a deposit of 500 sid out of my hands nice mister bank man sir?".

It may need a snappier title.  But I would very much like that command :D
Title: Re: Bank OCD and deposit math
Post by: JackGibbons on January 22, 2016, 02:21:17 PM
Yeah, my understanding is that it was done that way, with the random fee coming off on withdrawals, but that sucked when people needed to pull out a specific amount and had to do math then. So unless they go through the bother of writing a parallel command, someone's always going to have to do math. Actually a parallel command wouldn't be that hard, but if we're the only two people it may not be a priority.
Title: Re: Bank OCD and deposit math
Post by: Vwest on January 22, 2016, 03:18:49 PM
I have the same OCD.

It would be great if the banker checked your inventory for the deposit fee before pulling it from the amount deposited, for those of us who like seeing nice, neat rows of zeros. Anything less is just unsightly!  >:(

This is a request and I'm cool with being selfish about it.
Title: Re: Bank OCD and deposit math
Post by: roughneck on January 22, 2016, 06:40:13 PM
You guys are crazy.
Title: Re: Bank OCD and deposit math
Post by: catchall on January 22, 2016, 10:17:37 PM
I realize this is outside-the-box thinking, but what about setting up your client to do a regex text-replace on the balance message to round it down to a visually pleasing number?
Title: Re: Bank OCD and deposit math
Post by: Delirium on January 22, 2016, 10:30:30 PM
Embrace the chaos.
Title: Re: Bank OCD and deposit math
Post by: CodeMaster on January 22, 2016, 10:32:04 PM
I was thinking the same thing catchall.  (Catchall writes some thoughtful stuff ... post history is recommended reading)

Quote from: Delirium on January 22, 2016, 10:30:30 PM
Embrace the chaos.

laughed
Title: Re: Bank OCD and deposit math
Post by: Kyviantre on January 23, 2016, 01:12:53 PM
It has less to do with round numbers and more that I like to know what I'm putting into the bank.  If I'm saving for xyz then being able to add 225 to it is a nice chunk (and manageable for my simple maths brain to cope with :) ) for easy savings.  Right now, to do that I have to haul out an excel spreadsheet and spend 10 minutes trying various combinations to get something close to that number.

Because the above suggested addition command option would be more realistic - in this situation, I WOULD drop all my change on the counter and tell the bank person "I would like to deposit 225 please...no no, I'm okay waiting here while you work it out".

In short...they want me to pay a fee, they need to be paying some low level clerk to help me out with the maths so I feel that paying through the nose is worth it :D  I demand a maths helper elf not-an-elf!
Title: Re: Bank OCD and deposit math
Post by: Malifaxis on January 25, 2016, 03:18:44 PM
Knowing that people get twitchy about this makes me wish that you could deposit coins in to someone else's account.

The buxomly-OCD tressy aide walks west, sauntering out of the bank after blowing out three candles and re-lighting them.

say (with a grin to ~banker) I would like to deposit these three coins in to the personal account of aide TwitchyTits please.
Title: Re: Bank OCD and deposit math
Post by: JackGibbons on January 25, 2016, 05:43:42 PM
Quote from: Malifaxis on January 25, 2016, 03:18:44 PM
Knowing that people get twitchy about this makes me wish that you could deposit coins in to someone else's account.

The buxomly-OCD tressy aide walks west, sauntering out of the bank after blowing out three candles and re-lighting them.

say (with a grin to ~banker) I would like to deposit these three coins in to the personal account of aide TwitchyTits please.


(http://i.imgur.com/N51KMbi.jpg)
Title: Re: Bank OCD and deposit math
Post by: Kyviantre on January 25, 2016, 08:53:15 PM
(http://ci.memecdn.com/232/4030232.jpg)

Let's get him!
Title: Re: Bank OCD and deposit math
Post by: Dresan on January 25, 2016, 09:30:12 PM
Since we are on the subject. It would be nice to make joint accounts with one or more people.
Title: Re: Bank OCD and deposit math
Post by: Asmoth on January 25, 2016, 10:04:36 PM
Quote from: Dresan on January 25, 2016, 09:30:12 PM
Since we are on the subject. It would be nice to make joint accounts with one or more people.
Yes, then you could become richer than both Kadius and Salarr pcs lol.


Don't really need to have more than one person on a bank to gain money.  If I did nothing but gain money for a week real life I would have tens of thousands of Sid.