roundabnt 1.0.4+2 copy "roundabnt: ^1.0.4+2" to clipboard
roundabnt: ^1.0.4+2 copied to clipboard

This package allow user to round a number with brazilian abnt rule

example/lib/main.dart

import 'package:roundabnt/roundabnt.dart';

/// example how to use the roundabnt package
void main() {
  /// call RoundAbnt function
  final roundabnt = RoundAbnt();

  double resp = 0.00;
  resp = roundabnt.roundAbnt(88.241, 2);

  /// return 88.24
  print('$resp');

  resp = roundabnt.roundAbnt(88.248, 2);

  /// return 88.25
  print('$resp');

  resp = roundabnt.roundAbnt(88.2858, 2);

  /// return 88.29
  print('$resp');

  resp = roundabnt.roundAbnt(88.2358, 2);

  /// return 88.24
  print('$resp');

  resp = roundabnt.roundAbnt(88.2458, 2);

  /// return 88.25
  print('$resp');

  resp = roundabnt.roundAbnt(88.2450, 2);

  /// return 88.24
  print('$resp');
}
2
likes
140
points
1
downloads

Publisher

verified publishersclemente.42web.io

Weekly Downloads

This package allow user to round a number with brazilian abnt rule

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on roundabnt