Elektrine lite

← Feed

@monorail@glaceon.social

Post #2402180

2026-03-05 23:31 UTC

i thiiiink this works

Replies (2)

  • @monorail@glaceon.social 2026-03-05 23:43

    i'm finding log_10(n)-1 and dividing n by that and flooring it to get the first digit, then multiplying that by 10^floor(log_10(n)) to move it back into the position it was in in n, then subtracting it from n to remove that digit. then doing a division by 10 and a floor to remove the last digit

    Open ##2402181

  • @jackie@deadinsi.de 2026-03-05 23:43

    @monorail@glaceon.social ooh well it gives me an idea how to do this in any base

    Open ##2402195