# double **Repository Path**: zoar/double ## Basic Information - **Project Name**: double - **Description**: 解决dart浮点数运算是精度偏差问题 - **Primary Language**: Dart - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-29 - **Last Updated**: 2024-07-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README TODO: 解决浮点数运算中进度偏差的问题(有效小数),一般第三方的处理都比较繁琐,尤其是公式比较长时。 ## Features TODO: ## Getting started ``` dependencies: double: git: url: https://gitee.com/zoar/double.git ref: master ``` ## Usage ```dart Double a = Double(1.001); double b = 1.001; print('a = $a, b = $b a==b: ${a.equals(b)} ${a.value == b}'); for (var i = 0; i < 21; ++i) { a = a + 0.1; b = b + 0.1; print('a = $a, b = $b a==b: ${a.equals(b)} ${a.value == b}'); } ``` ## Additional information