Fill numeric dynamic field

Hello!

How can I fill in a field that is dynamic and numeric, for example in the image below
If you want to type 20, you need to stay 20,000.
If you want to type 21.3 you need to say 21,30

Need some more details

Sorry? Do you need more details?

grafik

returns the error that I cannot transform string to integer :neutral_face:

show us your implementation. thanks

Sure!

Some details are missing as we dont know where item is coming from and variable definitions

however we also showed how a string can be converted to a Double and reformated to the needed format.

the value comes from an assignment, which is inside a for each loop, so I am retrieving an item from a data table

When value is coming from a datatable row column value and is a valid numerical info we would parse it (e.g. string to double)

Kindly note also
grafik

as we mentioned:
grafik

So give a try at (we assume Quantity 20,000 string is needed)

CDbl(item("QTD").ToString.Trim).ToString("F3", System.Globalization.CultureInfo.CreateSpecificCulture("de-DE"))

feel free to use es-ES when eg a spanish culture is more preferred

Thank you, now it works according to what I wanted

Perfect, so the topic can be closed
Forum FAQ - How to mark a post as a solution - News / Tutorials - UiPath Community Forum

Hello!
Could you help me in cases where the numbers are: 0.20, for example

please refer to the screenshot

The F2 lines should do it

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.