问题标签 [ternary-representation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
11 问题
0
投票
2
回答
118
浏览
c++ - 将小数转换为平衡的七文体
我正在尝试创建一个函数来将十进制转换为平衡的 Heptavintimal (0123456789ABCDEFGHKMNPRTVXZ),其中 0 代表 -13,D:0 和 Z 13
我已经尝试过了,但有些情况无法正常工作:
这是我在这个例子中得到的 -14、-15、14、15 不起作用