Dart Math Utils

A simple Dart package that provides basic mathematical utilities.

Features

  • Add two numbers with support for both integers and decimals

Getting started

Add this to your package's pubspec.yaml file:

dependencies:
  dart_math_utils: ^1.0.0

Usage

import 'package:dart_math_utils/dart_math_utils.dart';

void main() {
  // Add two integers
  var sum = add(5, 3);
  print(sum); // Output: 8

  // Add two decimals
  var decimalSum = add(2.5, 3.7);
  print(decimalSum); // Output: 6.2
}

Additional information

Libraries

dart_math_utils
A library for basic mathematical utilities.