PHP Package: prestashop/decimal

This PHP library provides decimal handling functions for precise calculations in PrestaShop applications.

Current Version: 1.5.0
Last Updated: 2022-02-04
PHP Requirement: >=7.1
Dependencies: phpunit/phpunit, sebastian/diff, psr/log
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PrestaShop Decimal library offers a comprehensive set of tools for accurate decimal arithmetic operations. It ensures precise results in financial calculations, tax calculations, and other scenarios where precision is crucial. With this library, developers can avoid common floating-point arithmetic issues and maintain accuracy in their applications.

🔗 View on GitHub

Download Latest Version: 1.5.0

Download Download v1.5.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/prestashop/decimal/lib_version/autoload.php';

use PrestaShop\Decimal\DecimalCalculator;
use PrestaShop\Decimal\DecimalFormatter;
use PrestaShop\Decimal\DecimalValidator;
use PHPUnit\Framework\TestCase;
use Sebastian\Diff\Diff;
use Psr\Log\LoggerInterface;


$obj = new PrestaShop\Decimal\DecimalCalculator();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.