Invariant Culture (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語
Invariant Culture
'Invariant Culture' LogiX node
Inputs
Outputs
  CultureInfo *

The Invariant Culture node outputs a fixed locale which will be the same for all users.

Usage

This node provides information used when formatting data to strings (with the To String node) or parsing data from strings (using nodes under the Parsing category). The output from Invariant Culture can be provided to the FormatProvider of compatible nodes, an autocast node will be created upon connection. Locale information defines the default format for dates, times, numbers, currency values, the sorting order of text, casing conventions, and string comparisons for the user's; using the Invariant Culture node ensures that affected nodes will behave the same for all users regardless of their current locale.

Examples

It is generally recommended to use this node, rather than the Current Culture node, when parsing data from input files. Different locales have significantly different conventions for formatting numbers which can cause issues e.g. the number 1,000 would be interpreted as 'one thousand' in most English locales but 'one point zero zero zero' in many others.

Node Menu

Formatting
Back Current Culture Invariant Culture