• weker01@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 days ago

    There is an old unix calculator program called bc where one can change the input and output base.

    If you change the input base and then the output base strange things happen as bc interprets the output base number in the input base .

    ibase=2
    obase=10
    
    The output base is now 2 (in base 10)