PHPackages                             konstantind/otus-flexible-float-parser - 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. konstantind/otus-flexible-float-parser

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

konstantind/otus-flexible-float-parser
======================================

Flexible Float Parser is a lightweight PHP package that converts numeric strings with either a comma or a dot as a decimal separator into a float. It supports negative numbers and values without a leading zero (e.g., .5 → 0.5).

1.0.2(1y ago)05MITPHPPHP &gt;=7.0.0

Since Feb 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/konstantind/otus-flexible-float-parser)[ Packagist](https://packagist.org/packages/konstantind/otus-flexible-float-parser)[ RSS](/packages/konstantind-otus-flexible-float-parser/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (4)Used By (0)

What It Does
------------

[](#what-it-does)

Flexible Float Parser is a lightweight PHP package that converts numeric strings with either a comma or a dot as a decimal separator into a float. It supports negative numbers and values without a leading zero (e.g., .5 → 0.5).

Installation
------------

[](#installation)

```
composer require konstantind/otus-flexible-float-parser
```

Use
---

[](#use)

```
