In my language we use , instead of . for decimal seperation. How can I change double format to display , when I export it in word? The data is in tabele amd I neet to export the whole table into Word.
Is there any option to do this without changing to string?
HI @tomaz
- Approach
YourInput.Replace (".", ",")
- Another approach
Convert.ToDecimal (YourInput)
- Another approach
YourInput.ToString ("N2", new CultureInfo ("fr-FR"))
Regards
Gokul
Hi,
Another approach:
varDouble.ToString(System.Globalization.CultureInfo.CreateSpecificCulture("ES-es"))
It might be better to change “ES-es” to your country’s locale string.
Regards,
1 Like
@tomaz
There is two method only
one is .Replace function and second is regex.
without these i don’t think so their is another solution