InsertDecimalPoint
Places a decimal character in the captured value, at the character position specified as a parameter.
Syntax
bool InsertDecimalPoint (string Position)Parameters
- Position
-
A number indicating the character position at which to place the decimal with respect to the end of the string. Smart parameters are supported.
Returns
Always True.Level
Field level.Details
Places a decimal character in the captured value, at the character position specified as a parameter. The parameter indicates the position of the decimal point, moving from right to left. The decimal point inserted is the character designated for the current locale.
Example 1
InsertDecimalPoint("2")
324556 becomes 3245.56
InsertDecimalPoint("2")355 becomes 3.55
rrSet("de-DE", "@X.hr_locale")
InsertDecimalPoint("2")This action first explicitly configures the locale for the current DCO node for Germany, then InsertDecimalPoint inserts the correct decimal separator based on the locale, which is a comma for this locale. 355 becomes 3,55