From a5492e5890a52d667176a05ab7db39edd9915ed6 Mon Sep 17 00:00:00 2001 From: satteomama <149126295+satteomama@users.noreply.github.com> Date: Sat, 7 Mar 2026 06:34:59 -0500 Subject: [PATCH] float: add page (#21168) * float: add page * Update pages/common/float.md Co-authored-by: Harshavardhan * remove invalid `-E` flag example --------- Co-authored-by: Ivan Baluta Co-authored-by: Harshavardhan --- pages/common/float.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pages/common/float.md diff --git a/pages/common/float.md b/pages/common/float.md new file mode 100644 index 0000000000..3fd1676975 --- /dev/null +++ b/pages/common/float.md @@ -0,0 +1,22 @@ +# float + +> Declare floating point variable(s). +> Equivalent to `typeset -E` except that options irrelevant to floating point numbers are not permitted. +> See also: `typeset`, `declare`. +> More information: . + +- Declare a floating point variable: + +`float {{variable_name}}` + +- Declare a floating point variable while assigning its value: + +`float {{variable_name}}={{value}}` + +- Declare multiple floating point variables: + +`float {{var1=value1 var2=value2 ...}}` + +- Display defined variables: + +`float`