calculate 0.0.8
calculate: ^0.0.8 copied to clipboard

Dart native js
Flutter Android iOS web

This project enable to make computations on decimal numbers without loosing precision like double operations.

Dart Calculate

处理dart double计算精度丢失问题.

For instance :
import 'package:calculate';

print(compute('0.1 0.1 *'));

Usage

  • 编辑pubspec.yaml文件
dependencies:
  calculate: "0.0.4"
  • 获取包
pub get
  • 引入你的项目
import 'package:calculate/calculate.dart';
如果你不习惯逆波兰表达式,推荐使用dart-decimal处理精度问题。

参考链接

  1. Reverse Polish notation (RPN).
  2. Shunting-yard algorithm
1
likes
90
pub points
20%
popularity

This project enable to make computations on decimal numbers without loosing precision like double operations.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

0x23fd5097@gmail.com

License

MIT (LICENSE)

More

Packages that depend on calculate