radix-math:用于将整数与任意基数相互转换的 Clojure 库

时间:2021-07-11 07:13:10
【文件属性】:
文件名称:radix-math:用于将整数与任意基数相互转换的 Clojure 库
文件大小:9KB
文件格式:ZIP
更新时间:2021-07-11 07:13:10
Clojure Clojure 基数数学 该库提供了将整数转换为具有自定义“字母表”的任意基数表示的实用程序。 同样,字符串可以很容易地解码回整数表示。 虽然 Java 有基数(或“基数”)36 的限制,但这个库是通用的,可以处理任意基数。 。 版本和依赖信息 radix-math 通过发布。 最新的稳定版本是1.0.0 。 依赖信息: [radix-math " 1.0.0 " ] 用法 ( require '[radix-math :as radix]) ; ; Lets start with base 10: ( radix/to-radix 1 ( range 10 )) ; => (1) ; ; 95 has two digits ( radix/to-radix 95 ( range 10 )) ; => (9 5) ; ; To convert to hex, lets first
【文件预览】:
radix-math-master
----project.clj(682B)
----epl.html(12KB)
----test()
--------radix_math_test.clj(2KB)
----src()
--------radix_math.clj(1KB)
----radix.rb(2KB)
----.gitignore(46B)
----README.md(1KB)

网友评论