# RadzenNumeric CultureInfo("en-US") does not works

**URL:** <https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540>\
**Category:** Radzen.Blazor Components\
**Created:** [February 25, 2024, 12:00am UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540 "2024-02-25T00:00:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Flores](https://forum.radzen.com/user_avatar/forum.radzen.com/miguel_flores/32/14388_2.png) [@Miguel\_Flores](https://forum.radzen.com/u/Miguel_Flores)\
**Post date:** [February 25, 2024, 12:00am UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540/1 "2024-02-25T00:00:41Z")

</div>

I have the following code

```auto
private CultureInfo _Region = new CultureInfo("en-US");
<RadzenNumeric ShowUpDown="false" ReadOnly=@ObjetosInactivos Culture="_Region" 
    Format="N2" Name="txtDescuento" TValue="double" @bind-Value=@frmModelo.descuento class="compact-textboxs" />

```

The thing is that when I press the point the object shows me a comma, and for example when I type 1.5 the object assigns 15.00  
How can I correct this in case I am doing something wrong?  
thank you

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [February 26, 2024, 6:57am UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540/2 "2024-02-26T06:57:54Z")

</div>

Here is what I see with your code in our demos:

 ![image](https://forum.radzen.com/uploads/default/original/3X/8/1/81e181493cc47a32e946183153eaf7b982b5bc12.png)

 ![image](https://forum.radzen.com/uploads/default/original/3X/e/a/ea2ca202b98e1b71e39c6d6e55e0d8df08a0a667.png)

---

<div class="post-metadata">

**Author:** ![Miguel\_Flores](https://forum.radzen.com/user_avatar/forum.radzen.com/miguel_flores/32/14388_2.png) [@Miguel\_Flores](https://forum.radzen.com/u/Miguel_Flores)\
**Post date:** [February 26, 2024, 12:55pm UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540/3 "2024-02-26T12:55:42Z")

</div>

It is correct, on the demo page my code works perfectly, but in my project it continues to give the same behavior, what I have noticed is that it is the numeric keyboard dot that does this behavior, when I press the alphanumeric keyboard dot it does it correctly, I have no idea what it could be.

---

<div class="post-metadata">

**Author:** ![rabjen-iwes](https://forum.radzen.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rabjen-iwes](https://forum.radzen.com/u/rabjen-iwes)\
**Post date:** [March 4, 2024, 1:05pm UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540/4 "2024-03-04T13:05:31Z")

</div>

Actually, I have a very similar problem. I am using `CultureInfo.InvariantCulture` with `RadzenNumeric` and when I deploy my application and call it, I get German decimal separators (comma) instead of the dot, and the comma silently disappears. So, a value that should be `1.234` is rendered as `1,234` and when I read it, I get `1234`.

Unfortunately, I am not allowed to share company code but in the demo page everything works as well, it is also correctly rendered when I run the application from within Visual Studio. For now, I am using a `RadzenTextBox` with some CSS styling and manual parsing under the hood.

---

<div class="post-metadata">

**Author:** ![GodzSky](https://forum.radzen.com/user_avatar/forum.radzen.com/godzsky/32/10735_2.png) [@GodzSky](https://forum.radzen.com/u/GodzSky)\
**Post date:** [March 4, 2024, 1:46pm UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540/5 "2024-03-04T13:46:14Z")

</div>

@Miguel_Flores  
Check this post maybe could help u:

> [@Decimal format of RadzenNumeric is always localized despite culture set to invariant in WASM](http://forum.radzen.com/t/decimal-format-of-radzennumeric-is-always-localized-despite-culture-set-to-invariant-in-wasm/15751):
>
> I want to force a RadzenNumeric with a value type of double to display the value in the invariant culture. I have this: \<RadzenNumeric TValue="double" Culture="System.Globalization.CultureInfo.InvariantCulture" ... more ... /\> In my Program.cs on the Server side, I have: var app = builder.Build(); app.UseRequestLocalization(new RequestLocalizationOptions { DefaultRequestCulture = new RequestCulture("en-US"), SupportedCultures = new[] { Culture…

---

<div class="post-metadata">

**Author:** ![rabjen-iwes](https://forum.radzen.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rabjen-iwes](https://forum.radzen.com/u/rabjen-iwes)\
**Post date:** [March 4, 2024, 1:57pm UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540/6 "2024-03-04T13:57:31Z")

</div>

I found it just recently and I added your workaround which works for me. Thanks

---

<div class="post-metadata">

**Author:** ![GodzSky](https://forum.radzen.com/user_avatar/forum.radzen.com/godzsky/32/10735_2.png) [@GodzSky](https://forum.radzen.com/u/GodzSky)\
**Post date:** [March 4, 2024, 2:17pm UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540/7 "2024-03-04T14:17:20Z")

</div>

Yeah i saw ur reply in the topic i mentioned and i thought can help @Miguel_Flores too.

---

<div class="post-metadata">

**Author:** ![Miguel\_Flores](https://forum.radzen.com/user_avatar/forum.radzen.com/miguel_flores/32/14388_2.png) [@Miguel\_Flores](https://forum.radzen.com/u/Miguel_Flores)\
**Post date:** [March 4, 2024, 2:45pm UTC](https://forum.radzen.com/t/radzennumeric-cultureinfo-en-us-does-not-works/16540/8 "2024-03-04T14:45:40Z")

</div>

In my case I still have the same problem, In my country (El Salvador) we use the same format as the United States.but with the following code the result is the general format of Spain

```auto
@using System.Globalization;
<div class="rz-p-12 rz-text-align-center">
    <RadzenNumeric ShowUpDown="false" Culture="_Region" Format="C2" 
    Name="txtDescuento" TValue="double" @bind-Value=@value />
</div>

@code{
    private CultureInfo _Region = new CultureInfo("es-SV");
    double value;
}

```

 ![image](https://forum.radzen.com/uploads/default/original/3X/e/1/e1be7edd78ab8758983353efcf6b2f03a65cc3d5.png)

I have to mention that in a previous project with version 4.13.4 of RADZEN it worked perfectly for me, now with a new project and version 4.25.8 I have this problem
