PHPackages                             davidvandertuijn/number\_format\_to\_decimal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. davidvandertuijn/number\_format\_to\_decimal

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

davidvandertuijn/number\_format\_to\_decimal
============================================

Number Format To Decimal

4.0(4y ago)04.9k↓73.5%MITPHPPHP &gt;=7.0.0

Since Jun 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/davidvandertuijn/number_format_to_decimal)[ Packagist](https://packagist.org/packages/davidvandertuijn/number_format_to_decimal)[ RSS](/packages/davidvandertuijn-number-format-to-decimal/feed)WikiDiscussions master Synced today

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Number Format To Decimal
========================

[](#number-format-to-decimal)

[![Total Downloads](https://camo.githubusercontent.com/a9ee24686a1cf6b3c80b9f712ad3b221f83340f037b7b10bc320f032898678a0/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f6e756d6265725f666f726d61745f746f5f646563696d616c2f642f746f74616c2e737667)](https://packagist.org/packages/davidvandertuijn/number_format_to_decimal)[![Latest Stable Version](https://camo.githubusercontent.com/72cb07d760bf3af4d2ccf12a9a4f53c29698b5ded90c12eac313b35d9f302fda/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f6e756d6265725f666f726d61745f746f5f646563696d616c2f762f737461626c652e737667)](https://packagist.org/packages/davidvandertuijn/number_format_to_decimal)[![License](https://camo.githubusercontent.com/3a40b071aed1bae4829a0c68f52916efd29d2998664e09045b35b4dd68862cf9/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f6e756d6265725f666f726d61745f746f5f646563696d616c2f6c6963656e73652e737667)](https://packagist.org/packages/davidvandertuijn/number_format_to_decimal)

[![Number Format To Decimal](https://camo.githubusercontent.com/302987c95bef0c8713528cb56c0c55beabe6cbee62f7036d62e2a08af70d13e6/68747470733a2f2f63646e2e646176696476616e6465727475696a6e2e6e6c2f6769746875622f6e756d6265725f666f726d61745f746f5f646563696d616c2e706e67)](https://camo.githubusercontent.com/302987c95bef0c8713528cb56c0c55beabe6cbee62f7036d62e2a08af70d13e6/68747470733a2f2f63646e2e646176696476616e6465727475696a6e2e6e6c2f6769746875622f6e756d6265725f666f726d61745f746f5f646563696d616c2e706e67)

The Number Format to Decimal converter is a versatile tool designed to simplify the process of converting numerical values from various formats into a standardized decimal format. This functionality is particularly beneficial for professionals working with data, finance, or programming, where precise numerical representation is crucial.

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/davidvandertuijn)

Install
-------

[](#install)

```
composer require davidvandertuijn/number_format_to_decimal
```

Usage
-----

[](#usage)

```
number_format_to_decimal('1000,99'); // 1000.99
number_format_to_decimal('1000.99'); // 1000.99
number_format_to_decimal('1.000,99'); // 1000.99
number_format_to_decimal('1,000.99'); // 1000.99
number_format_to_decimal('10.000'); // 10000
number_format_to_decimal('100.000'); // 100000
number_format_to_decimal('10,000'); // 10000
number_format_to_decimal('100,000'); // 100000
number_format_to_decimal('1.000.000'); // 1000000
number_format_to_decimal('1.000.000,99'); // 1000000.99
number_format_to_decimal('1,000,000'); // 1000000
number_format_to_decimal('1,000,000.99'); // 1000000.99
```

### Comments

[](#comments)

I use this script for many years, if you have a better solution please let me know!

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~440 days

Total

5

Last Release

1556d ago

Major Versions

1.0 → 2.02019-05-26

2.0 → 3.02021-05-27

3.1 → 4.02022-03-31

PHP version history (2 changes)1.0PHP &gt;=4.0

2.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8904bedce7fb2ec131c0d18c13aeaa82b00af2fd03ebe099886ac462b1d29e?d=identicon)[davidvandertuijn](/maintainers/davidvandertuijn)

---

Top Contributors

[![davidvandertuijn](https://avatars.githubusercontent.com/u/11010507?v=4)](https://github.com/davidvandertuijn "davidvandertuijn (15 commits)")

### Embed Badge

![Health badge](/badges/davidvandertuijn-number-format-to-decimal/health.svg)

```
[![Health](https://phpackages.com/badges/davidvandertuijn-number-format-to-decimal/health.svg)](https://phpackages.com/packages/davidvandertuijn-number-format-to-decimal)
```

###  Alternatives

[nlac/nlsclientscript

Yii ClientScript extension for prevent reloading javascript and merging/minfying resources

208.4k](/packages/nlac-nlsclientscript)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
