2 Oct 2023 |
discodoug | * That last digit effectively is just a place holder to let you know you want three digits. | 23:52:27 |
shad.ow#0 | i suppose if the limit is 99 hours then 100 would work or something? | 23:52:41 |
discodoug | But I would think of it as (24 hours) (60 minutes) (60 seconds). | 23:52:50 |
shad.ow#0 | hm yeah but then if it was like 75 hours for the duration | 23:52:58 |
shad.ow#0 | it would break int o days | 23:53:00 |
shad.ow#0 | * it would break into days | 23:53:03 |
shad.ow#0 | 100 60 60\359999
99 59 59 | 23:53:16 |
shad.ow#0 | i think this isn't times of day | 23:53:20 |
discodoug | You can use 0, to have the left over... | 23:53:24 |
shad.ow#0 | just represntation of durations | 23:53:26 |
shad.ow#0 | oh that makes sense | 23:53:29 |
shad.ow#0 | thanks! | 23:53:34 |
discodoug | No worries. | 23:53:50 |
discodoug | Sorry. I didn't grok that you were going up to 99 hours... | 23:56:34 |
3 Oct 2023 |
shad.ow#0 | np np | 00:01:33 |
shad.ow#0 | in that case yeah the remainder makes sense, 0 | 00:01:36 |
coltim | I never quite understood why the encode/decode doesn't work for pennies/nickels/dimes/quarters | 00:07:59 |
coltim | something about a quarter not being an integer multiple of the dime or something | 00:08:16 |
gluttonousporcupine | hmmm you can't use fractional values? | 00:16:33 |
discodoug | The place values of a base a b c d number are 1_|*\1,|a b c d . | 00:20:09 |
discodoug | I learned this neat trick from Kamila : {x/x}1 0 1 0 1 1 1 counts the number of trailing ones. (More impressive as just two glyphs in APL) | 00:23:12 |
discodoug | (Here a b c d is meant to represent a list of integers and not successive application.) | 00:25:04 |
coltim | (I was thinking of this code golf: https://codegolf.stackexchange.com/questions/70847/this-challenge-makes-cents) | 00:26:27 |
coltim | * (I was thinking of this code golf: https://codegolf.stackexchange.com/questions/70847/this-challenge-makes-cents) | 00:26:59 |
shad.ow#0 | i had the same exact thought a while ago | 02:38:32 |
shad.ow#0 | what's the non-golfed way to do this | 02:39:05 |
shad.ow#0 | +/&\|: ? | 02:39:09 |
razetime#0 | yeah that seems correct | 02:55:57 |
hermetian | [WIP] Factored out the references to characters and can now add larger numbers. | 07:11:05 |
discodoug | FWIW, relative to seconds this is absolutely right, but the encode base is simply 24 60 60 . Just like we call it the hundreds place even though the encode base is 10 10 10 . | 07:33:00 |