fixed 1.0.0-beta4 copy "fixed: ^1.0.0-beta4" to clipboard
fixed: ^1.0.0-beta4 copied to clipboard

outdated

Fixed scale decimal numbers. Have fun with maths at home with friends. Fixed.parse(\"1.234\", scale: 2).formatIntl(\"en-AUS\") == 1.23

example/fixed_example.dart

import 'package:fixed/fixed.dart';

void main() {
  var fixed = Fixed.fromNum(1, scale: 2);

  print(fixed.toString());
  print(fixed.format('#.#'));
  print(fixed.format('#.000'));

  var add = fixed + Fixed.fromNum(1);
  print(add);
}
7
likes
0
points
47.5k
downloads

Publisher

verified publisheronepub.dev

Weekly Downloads

Fixed scale decimal numbers. Have fun with maths at home with friends. Fixed.parse(\"1.234\", scale: 2).formatIntl(\"en-AUS\") == 1.23

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

decimal, intl

More

Packages that depend on fixed