Settings.shr: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/settings.bend as Settings Lines 77-85 of cswap-bend-cli@0.1.0.0/settings.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/settings.bend&start_line=77&end_line=85 import Base # Move the point n digits right (digits come from the fraction, zeros pad). def shr(n: Nat, neg: Bool, i: String, f: String) -> Dec: match n f: case 0n _: canon(neg, i, f) case 1n+p SNil{}: shr(p, neg, i ++ "0", "") case 1n+p SCon{c, t}: shr(p, neg, i ++ SCon{c, SNil{}}, t) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/settings.bend&name=Dec https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/settings.bend&name=canon