# How to parse string with non-US number format?

**URL:** https://discourse.julialang.org/t/how-to-parse-string-with-non-us-number-format/97833
**Category:** General Usage
**Tags:** parsing, locale
**Created:** [April 23, 2023, 11:14pm UTC](https://discourse.julialang.org/t/how-to-parse-string-with-non-us-number-format/97833 "2023-04-23T23:14:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)
#### Post date: [April 23, 2023, 11:14pm UTC](https://discourse.julialang.org/t/how-to-parse-string-with-non-us-number-format/97833/1 "2023-04-23T23:14:01Z")

</div>

How to convert the string `"132.993,00"` to the floating point value `132993.00`? Are the internationalization or locale packages in Julia that handle country-specific number formats?

`Base.parse` doesn’t contain options to parse non-US number formats.

---

<div class="post-metadata">

### Author: ![quinnj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quinnj/32/11_2.png) [@quinnj](https://discourse.julialang.org/u/quinnj)
#### Post date: [April 24, 2023, 5:41am UTC](https://discourse.julialang.org/t/how-to-parse-string-with-non-us-number-format/97833/2 "2023-04-24T05:41:20Z")

</div>

> [@juliohm](#):
>
> `"132.993,00"`

You can do this with Parsers.jl using a custom `Parsers.Options`, like:

```julia
julia> using Parsers

julia> opts = Parsers.Options(; decimal=',', groupmark='.')
Parsers.Options(Parsers.Flags(spacedelim=false, tabdelim=false, stripquoted=false, stripwhitespace=false, checkquoted=true, checksentinel=false, checkdelim=true, ignorerepeated=false, ignoreemptylines=false), 0x2c, Parsers.Token(0x22), Parsers.Token(0x22), 0x22, Parsers.Token[], Parsers.Token(0x2c), Parsers.Token(""), nothing, nothing, nothing, 0x2e)

julia> Parsers.parse(Float64, "132.993,00", opts)
132993.0

```
