Yaml11.sexa.float: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11 Lines 167-171 of yaml-for-bend@0.1.1.0/yaml11.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&start_line=167&end_line=171 import Base import yaml-for-bend@0.1.1.0/num.bend as N import yaml-for-bend@0.1.1.0/core.bend as C # A base-60 float: the whole part in base 60, then the fraction. def sexa.float(+s: String) -> String: +t = no.seps(s) +body = C.unsigned(t) N.dec.exact(Bool.pick(String, C.is_neg(t), "-", "") ++ N.big.show(sexa.big(String.split(before.dot(body), ':'))) ++ "." ++ after.dot(body)) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char 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=Base/base.bend&name=String.split https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=is_neg https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=unsigned https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/num.bend&name=big.show https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/num.bend&name=dec.exact https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=after.dot https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=before.dot https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=no.seps https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=sexa.big