键盘快捷键

使用 跳转章节

使用 S/ 在本书内搜索

使用 ? 显示帮助页面

使用 Esc 隐藏帮助页面

Ceiling

The Ceiling function calculates the ceiling of a number, which is the smallest integer that is greater than or equal to the input number.

Parameters

The Ceiling function accepts only one numeric parameter.

Return Value

The Ceiling function returns the ceiling value of the input number.

Examples

Ceiling[3.7]; (* => 4 *)
Ceiling[-3.7]; (* => -3 *)
Ceiling[5]; (* => 5 *)
Ceiling[-5]; (* => -5 *)

Chars

The Chars function is used to convert a string into a list of characters.

Parameters

The Chars function takes only one parameter, which is a string.

Return Value

The Chars function returns a list of characters corresponding to the input string, or an empty list for an empty string.

Examples

Chars["hello"]; (* => { "h", "e", "l", "l", "o" } *)
Chars["你好👋,世界🌏!"];
(* => {"你", "好", "👋", ",", "世", "界", "🌏", "!"} *)

Concat

The Concat function is used to concatenate lists or strings.

Parameters

The Concat function accepts at least one list or string, and all parameters must be of the same type, meaning they must either be a series of strings or a series of lists.

Return Value

The Concat function returns the concatenated string or list.

Examples

Concat["Hello, ", "world!", "🌏"];
(* => "Hello, world!🌏" *)

Concat[{#a}, {#b, #c}, {#d, {#e}}];
(* => {#a, #b, #c, #d, {#e}} *)