Skip to main content

sanitize_separators

Sanitize a value according to the current decimal and thousand separator setting. Used with form field input.

def sanitize_separators(
value: string
) - > string

Sanitize a value according to the current decimal and thousand separator setting. Used with form field input.

Parameters

NameTypeDescription
valuestringThe raw input string from a form field containing localized numeric formatting.

Returns

TypeDescription
stringA string representation of the value with thousand separators removed and the localized decimal separator replaced by a standard dot.