ValueUser function
Syntax
ValueUser(str)
Description
Use the ValueUser function to convert a string representing a number to the number, using the locale-specific format for the current user to interpret the number. For example, if the locale or user level personalization settings specify to use a comma as the decimal separator, the number will be interpreted based on that setting, instead of the default for the database.
To convert a number without using the user's format for the number, use the Value function.
Parameters
| Parameter | Description |
|---|---|
|
str |
Specify the string value representing a number that you want converted to a number. |
Returns
Returns the number value represented by str.
Example
The example sets &VAL1 to 5.25 and &VAL2 to 12500:
&VAL1 = ValueUser("5.25");
&VAL2 = ValueUser("12,500");
Related Topics