元編程參考文件

型別轉換

41 個節點

本頁內容 41

真否轉文字

函數

Converts a boolean to its string representation.

簽名
真否轉文字(輸入: 真否) -> 文字
string BoolToString(bool input)

參數

名稱型別預設值說明
輸入真否—The boolean value to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

位元組轉文字

函數

Converts a byte to its string representation.

簽名
位元組轉文字(輸入: 位元組) -> 文字
string ByteToString(byte input)

參數

名稱型別預設值說明
輸入位元組—The byte value to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

字元轉文字

函數

Converts a char to its string representation.

簽名
字元轉文字(輸入: Char) -> 文字
string CharToString(char input)

參數

名稱型別預設值說明
輸入Char—The char to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

轉換值型別

函數

Converts the specified input to the type T.

簽名
轉換值型別(輸入: 任意) -> T
T ConvertTo(object input)

參數

名稱型別預設值說明
輸入任意—The input object to convert.

返回

ResultT
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

高精度數字轉文字

函數

Converts a decimal to its string representation.

簽名
高精度數字轉文字(輸入: 高精度數字) -> 文字
string DecimalToString(decimal input)

參數

名稱型別預設值說明
輸入高精度數字—The decimal to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

數字轉文字

函數

按所有機器通用的唯一寫法把數字寫成文字:小數點寫作點號,不加千位分隔,例如 1.5。

簽名
數字轉文字(輸入: 數字) -> 文字
string DoubleToString(double input)

參數

名稱型別預設值說明
輸入數字—The double value to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

低精度數字轉文字

函數

Converts a float to its string representation.

簽名
低精度數字轉文字(輸入: 低精度數字) -> 文字
string FloatToString(float input)

參數

名稱型別預設值說明
輸入低精度數字—The float to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

整數轉文字

函數

Converts an integer to its string representation.

簽名
整數轉文字(輸入: 整數) -> 文字
string IntToString(int input)

參數

名稱型別預設值說明
輸入整數—The integer to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

大整數轉文字

函數

Converts a long to its string representation.

簽名
大整數轉文字(輸入: 大整數) -> 文字
string LongToString(long input)

參數

名稱型別預設值說明
輸入大整數—The long value to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

小整數轉文字

函數

Converts a short to its string representation.

簽名
小整數轉文字(輸入: 小整數) -> 文字
string ShortToString(short input)

參數

名稱型別預設值說明
輸入小整數—The short to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

有符號位元組轉文字

函數

Converts an sbyte to its string representation.

簽名
有符號位元組轉文字(輸入: SByte) -> 文字
string SignedByteToString(sbyte input)

參數

名稱型別預設值說明
輸入SByte—The sbyte to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉真否

函數

Converts a string to a boolean.

簽名
文字轉真否(輸入: 文字) -> 真否
bool StringToBool(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉位元組

函數

Converts a string to a byte-sized integer.

簽名
文字轉位元組(輸入: 文字) -> 位元組
byte StringToByte(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果位元組
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉字元

函數

Converts a string containing a single character to a char.

簽名
文字轉字元(輸入: 文字) -> Char
char StringToChar(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert. Must contain exactly one character.

返回

結果Char

備註

For char conversion, we assume the input string should contain exactly one character.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉高精度數字

函數

Converts a string to a decimal.

簽名
文字轉高精度數字(輸入: 文字) -> 高精度數字
decimal StringToDecimal(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果高精度數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉數字

函數

按所有機器通用的唯一寫法從文字中讀取數字:小數點寫作點號,不加千位分隔,例如 1.5 或 -2.25e3。按某一區域習慣書寫的文字(例如 1,5)會被拒絕,而不會被誤讀。

簽名
文字轉數字(輸入: 文字) -> 數字
double StringToDouble(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉低精度數字

函數

Converts a string to a float.

簽名
文字轉低精度數字(輸入: 文字) -> 低精度數字
float StringToFloat(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果低精度數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉整數

函數

Converts a string to an integer.

簽名
文字轉整數(輸入: 文字) -> 整數
int StringToInt(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字拆分為行

函數

此節點沒有文件說明。

簽名
文字拆分為行 -> 文字陣列
    輸入: 文字
    忽略空行: 真否
    去除每項空白: 真否
string[] StringToLines(
    string input,
    bool ignoreEmptyLines,
    bool trimEntries)

參數

名稱型別預設值說明
輸入文字—
忽略空行真否—
去除每項空白真否—

返回

結果文字陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉大整數

函數

Converts a string to a long.

簽名
文字轉大整數(輸入: 文字) -> 大整數
long StringToLong(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果大整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉小整數

函數

Converts a string to a short.

簽名
文字轉小整數(輸入: 文字) -> 小整數
short StringToShort(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果小整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉有符號位元組

函數

Converts a string to a signed byte (sbyte).

簽名
文字轉有符號位元組(輸入: 文字) -> SByte
sbyte StringToSignedByte(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果SByte
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉正整數

函數

Converts a string to an unsigned integer (uint).

簽名
文字轉正整數(輸入: 文字) -> 正整數
uint StringToUInt(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果正整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉大正整數

函數

Converts a string to an unsigned long (ulong).

簽名
文字轉大正整數(輸入: 文字) -> 大正整數
ulong StringToULong(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果大正整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

文字轉小正整數

函數

Converts a string to an unsigned short (ushort).

簽名
文字轉小正整數(輸入: 文字) -> 小正整數
ushort StringToUShort(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果小正整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉位元組

函數

此節點沒有文件說明。

簽名
值轉位元組(值: 任意) -> 位元組
byte ToByte(object value)

參數

名稱型別預設值說明
值任意—

返回

結果位元組
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉高精度數字

函數

此節點沒有文件說明。

簽名
值轉高精度數字(值: 任意) -> 高精度數字
decimal ToDecimal(object value)

參數

名稱型別預設值說明
值任意—

返回

結果高精度數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉數字

函數

此節點沒有文件說明。

簽名
值轉數字(值: 任意) -> 數字
double ToDouble(object value)

參數

名稱型別預設值說明
值任意—

返回

結果數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉低精度數字

函數

此節點沒有文件說明。

簽名
值轉低精度數字(值: 任意) -> 低精度數字
float ToFloat(object value)

參數

名稱型別預設值說明
值任意—

返回

結果低精度數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉整數

函數

此節點沒有文件說明。

簽名
值轉整數(值: 任意) -> 整數
int ToInteger(object value)

參數

名稱型別預設值說明
值任意—

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉大整數

函數

此節點沒有文件說明。

簽名
值轉大整數(值: 任意) -> 大整數
long ToLong(object value)

參數

名稱型別預設值說明
值任意—

返回

結果大整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉小整數

函數

此節點沒有文件說明。

簽名
值轉小整數(值: 任意) -> 小整數
short ToShort(object value)

參數

名稱型別預設值說明
值任意—

返回

結果小整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉有符號位元組

函數

此節點沒有文件說明。

簽名
值轉有符號位元組(值: 任意) -> SByte
sbyte ToSignedByte(object value)

參數

名稱型別預設值說明
值任意—

返回

結果SByte
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉正整數

函數

此節點沒有文件說明。

簽名
值轉正整數(值: 任意) -> 正整數
uint ToUInteger(object value)

參數

名稱型別預設值說明
值任意—

返回

結果正整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉大正整數

函數

此節點沒有文件說明。

簽名
值轉大正整數(值: 任意) -> 大正整數
ulong ToULong(object value)

參數

名稱型別預設值說明
值任意—

返回

結果大正整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

值轉小正整數

函數

此節點沒有文件說明。

簽名
值轉小正整數(值: 任意) -> 小正整數
ushort ToUShort(object value)

參數

名稱型別預設值說明
值任意—

返回

結果小正整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

正整數轉文字

函數

Converts a uint to its string representation.

簽名
正整數轉文字(輸入: 正整數) -> 文字
string UIntToString(uint input)

參數

名稱型別預設值說明
輸入正整數—The uint to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

大正整數轉文字

函數

Converts an ulong to its string representation.

簽名
大正整數轉文字(輸入: 大正整數) -> 文字
string ULongToString(ulong input)

參數

名稱型別預設值說明
輸入大正整數—The ulong to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

小正整數轉文字

函數

Converts a ushort to its string representation.

簽名
小正整數轉文字(輸入: 小正整數) -> 文字
string UShortToString(ushort input)

參數

名稱型別預設值說明
輸入小正整數—The ushort to convert.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

位元組轉 UTF-8 文字

函數

Converts UTF8 bytes to its string representation.

簽名
位元組轉 UTF-8 文字(位元組: 位元組陣列) -> 文字
string UTF8BytesToString(byte[] bytes)

參數

名稱型別預設值說明
位元組位元組陣列—The UTF-8 encoded bytes to decode. Byte sequences that are not valid UTF-8 are replaced with the Unicode replacement character (U+FFFD) rather than causing an error.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫

UTF-8 文字轉位元組

函數

Converts a UTF8 encoded string to bytes.

簽名
UTF-8 文字轉位元組(輸入: 文字) -> 位元組陣列
byte[] UTF8StringToBytes(string input)

參數

名稱型別預設值說明
輸入文字—The string to convert.

返回

結果位元組陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
型別轉換
所屬包
標準庫