1 个仓库
Mechanisms to isolate precision and rounding rules between different sets of numeric objects.
Distinct from Precision Settings: Focuses on runtime arithmetic object isolation rather than database storage configuration.
Explore 1 awesome GitHub repository matching software engineering & architecture · Arithmetic Precision Isolation. Refine with filters or upvote what's useful.
big.js 是一个用于 JavaScript 的任意精度十进制库,专为执行精确的十进制算术运算而设计。它提供了一套用于高精度加、减、乘、除的工具,以避免二进制浮点数表示中常见的舍入误差。 该库允许创建自定义数字构造函数,以便为不同类别的数字隔离精度设置和舍入规则。它支持可配置的全局精度以及特定的舍入行为(如截断或四舍五入到偶数),适用于除法和幂运算。 其能力范围涵盖基础算术、比较逻辑以及平方根和整数幂的计算。它还包括高精度格式化工具,可将数值转换为定点、指数或有效数字字符串。
Generates independent constructors to apply distinct precision and rounding rules to different number groups.