変換関数は、1 つのデータ型または形式を別のデータ型または形式に変換します。たとえば、数値を文字列に、または文字列を数値に変換するには、変換関数を使用します。変換関数は、文字列データ型と数値データ型で使用できます。
注記
Not all functions are supported between Standard mode and Cloud Native mode tools. For a list of supported functions, go to the respective Standard mode and Could Native mode function lists found on the Formula tool page.
BinToInt(s)
: バイナリ文字列 s を整数に変換します(53ビットに制限されています)。
BinToInt(101010101)
結果は341になります。
CharFromInt(x)
: 入力した数値 x と一致する Unicode® 文字を返します。
CharFromInt(66)
B(U + 0042 'ラテン語大文字B')を返します。
CharFromInt(169)
© (U+00A9「著作権マーク」) を返します。
CharFromInt(1071)
Я(U + 042F 'キリル文字大文字YA')を返します。
CharFromInt(0)
文字を表現するために使用できない整数値はnullを返す可能性があるため、[null](U + 000 'Null')を返します。
CharFromInt(55300)
現時点では文字を表現していない整数値は通常のフォントではレンダリングされないため、[null]を返します。
CharToInt(s)
: 入力した Unicode® 文字 s と一致する数値を返します。
CharToInt("B")
66(U + 0042 'ラテン語大文字B')を返します。
CharToInt("©")
169 (U+00A9「著作権マーク」) を返します。
CharToInt("Я")
1071(U + 042F 'キリル文字大文字YA')を返します。
ConvertFromCodePage(s, codePage)
: Translates text from a code page to Unicode. To learn more about code pages, go to the Code Pages documentation.
ConvertToCodePage(s, codePage)
: Translates text from Unicode encoding to a specific code page. To learn more about code pages, visit the Code Pages documentation.
HexToNumber(x)
: HEX文字列を数値に変換します(53ビットに制限されています)。
HexToNumber(dd)
は、数値221に変換します。
IntToBin(x)
: x をバイナリ文字列に変換します。
IntToHex(x)
: x を HEX 文字列に変換します。
ToDegrees(x)
: Converts a numeric radian value (x) to degrees via the (x)rad × 180/π calculation. Please note that x must be a numeric value and can’t include any radian symbol (rad).
ToNumber(x, [bIgnoreErrors], [keepNulls], [decimalSeparator])
: 文字列 x を数値に変換します。括弧はオプションのパラメーターを示します。
ToNumberは、科学的表記倍精度として解釈できる文字列を受け入れます。既定では、ピリオドが小数点記号として使用されます。
bIgnoreErrors
(既定) 0 または false は、変換エラーメッセージを報告します。
1 または true は変換エラーを無視します。
keepNulls
(既定) 0 または false は、数値以外の値 (null を含む) をゼロに変換します。
1 または true は、数値以外の値を null に変換します。
decimalSeparator
: 入力文字列で使用される小数点記号です。
(既定) "." はピリオドを小数点記号として指定します。
"," はコンマを小数点記号として指定します。
decimalSeparator
パラメーターは、入力文字列に設定されたすべての
桁区切り記号
(スペース、ピリオド、カンマ)を無視します。
ToNumber("878")
文字列878を数値として返します。
ToNumber("4.256411411E9")
文字列4256411411を数値として返します。
ToNumber("Number", "false")
変換エラー (TONUMBER: 変換で数値情報が失われました。) で0を返します。
ToNumber("Number", 0, 0)
変換エラー (TONUMBER: 変換で数値情報が失われました。) で0を返します。
ToNumber("Number", 1, 0)
変換エラーなしで0を返します。
ToNumber("Number", 1, 1)
[Null]および変換エラーなしで0を返します。
ToNumber("123456,789", 1, 1, ",")
123456.789を数値として返します。
ToNumber("123.456,789", 1, 1, ",")
123456.789を数値として返します。これは、ピリオドが自動的に桁区切り文字として解釈され、コンマは
decimalSeparator
によって小数点として指定されているためです。
ToRadians(x)
: Converts a numeric degree value (x) to radians via the (x)° × π/180 calculation. Please note that x must be a numeric value and can’t include the degree symbol (°).
ToString(x, numDec, [addThousandsSeparator], [decimalSeparator])
: 数値パラメーター(x)をnumDecの小数位を使用する文字列に変換します。既定の選択では、ピリオドが小数点記号として使用されます。括弧はオプションのパラメーターを示します。
addThousandsSeparator
(既定)0は桁区切り記号を使用せずに数値文字列をフォーマットします。
1は桁区切り記号を使用してフォーマットします。既定では、コンマが 3 桁ごとの区切り記号として使用されます。ただし、"," が
decimalSeparator
に指定されている場合は、ピリオドが 3 桁ごとの区切り記号として使用されます。"," は、コンマを桁区切り記号として指定します。
"." は、ピリオドを桁区切り記号として指定します。
" " は、スペースを桁区切り記号として指定します。
"'" は、アポストロフィを桁区切り記号として指定します。
decimalSeparator
:
(既定) "." は、ピリオドを小数点記号として指定します。
"," は、コンマを小数点記号として指定します。
ToString(10, 0)
10を文字列として返します。
ToString(10.4, 2)
10.40を文字列として返します。
ToString(100.4, 2)
100.40を文字列として返します。
ToString(1000.4, 2, 1)
1,000.40を文字列として返します。
ToString(123456.789, 3, 1, ",")
123.456,789を文字列として返します。
ToString(123456.789, 3, 0, ",")
123456,789を文字列として返します。
ToString(1234567.89, 2, ".", ",")
1.234.567,89を文字列として返します。
ToString(1234567.89, 2, " ", ",")
1 234 567,89を文字列として返します。
ToString(1234567.89, 2, "'", ",")
1'234'567,89を文字列として返します。
UnicodeNormalize(String, Form)
: Converts text data in the provided string into a standardized Unicode form. Use the required Form parameter (case-insensitive) to define the normalization form. You must manually enter one of the below normalization form options (this parameter can't be populated via an upstream field.
Normalization helps ensure that different representations of the same text are treated equivalently. It reduces ambiguity and simplifies text processing tasks such as searching, sorting, and comparing. It's particularly important in environments where text can originate from various sources or be processed by different systems with differing encoding standards.
String: The provided string that you need to normalize.
Form: Options for how to normalize your string. These are the acceptable normalization forms (String format and quotes are required):
NFC (Normalization Form Canonical Composition): NFC composes characters and sequences of characters in a text into a single precomposed form whenever possible. This form is commonly used for data interchange and storage.
NFD (Normalization Form Canonical Decomposition): NFD decomposes characters and sequences of characters into their base characters and combines characters. This form can be useful for tasks such as searching and comparing text.
NFKC (Normalization Form Compatibility Composition): NFKC first applies a compatibility decomposition, then composes characters and sequences of characters into a single precomposed form whenever possible. This form is often used for compatibility and normalization of legacy data.
NFKD (Normalization Form Compatibility Decomposition): NFKD applies a compatibility decomposition to characters and sequences of characters, breaking them down into their base characters and combining characters. This form can also be useful for compatibility and normalization purposes.
UnicodeNormalize("i⁹","NFKD")
returns i9.UnicodeNormalize("¼","NFKC")
returns 1/4.UnicodeNormalize("㌄","NFC")
returns ㌄.UnicodeNormalize("㌄","NFKC")
returns イニング.