You are here

public function NumberFormatterInterface::parse in Physical Fields 8

Parses the given number.

Replaces language-specific characters with the standard ones.

Parameters

string $number: The number, formatted according to the current language.

Return value

string|false The parsed number, or FALSE on error.

1 method overrides NumberFormatterInterface::parse()
NumberFormatter::parse in src/NumberFormatter.php
Parses the given number.

File

src/NumberFormatterInterface.php, line 44

Class

NumberFormatterInterface
Allows parsing and formatting numbers using language-specific rules.

Namespace

Drupal\physical

Code

public function parse($number);