MCPcopy Create free account
hub / github.com/corestoreio/pkg / ExtractNumber

Function ExtractNumber

locale/format.go:35–97  ·  view source on GitHub ↗

@todo see lib/internal/Magento/Framework/Locale/Format.php ExtractNumber returns the first found number from a string. Examples for input: ' 2345.4356,1234' = 23455456.1234 '+23,3452.123' = 233452.123 ' 12343 ' = 12343 '-9456km' = -9456 '0' = 0 '2 054,10' = 2054.1 '2'054.52' = 2054.52 '2,46 GB' =

(n string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected