> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Parse values to NetServer format

> How to parse values to NetServer format

When a user enters a value, it needs to be converted into a formatted value before being sent back to the web service for processing. This conversion needs to happen on the client, where we know the localization settings (the current culture).

If the user types in *1234,5* (a Norwegian floating-point value), we need to turn this into a floating-point value.

```csharp theme={null}
using SuperOffice.CRM.Globalization;

string encoded = "1234,5";
double theNumber;
Double.TryParse(out encoded);
string formatted = CultureDataFormatter.EncodeDouble( theNumber );
// formatted = "[D:1234.5]"
```


## Related topics

- [Pocket CRM configuration](/en/onsite/pocket-crm/configure.md)
- [CultureDataFormatter](/en/api/localization/culture/culturedataformatter.md)
- [Encoded values](/en/api/archive-providers/encoded-values.md)
- [Message](/en/automation/crmscript/reference/CRMScript.Native.Message.md)
- [Field-value formats and conventions](/en/api/plugins/erp-connectors/api/field-value-formats-and-conventions.md)
- [Parse Query Into Restrictions](/en/api/reference/restful/agent/ai_agent/parse-query-into-restrictions.md)
