docs: update
This commit is contained in:
@@ -895,8 +895,9 @@ var=$((var2 > var ? var2 : var))
|
|||||||
**Example Function:**
|
**Example Function:**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Usage: is_float "number"
|
|
||||||
is_float() {
|
is_float() {
|
||||||
|
# Usage: is_float "number"
|
||||||
|
|
||||||
# The test checks to see that the input contains
|
# The test checks to see that the input contains
|
||||||
# a '.'. This filters out whole numbers.
|
# a '.'. This filters out whole numbers.
|
||||||
[ -z "${1##*.*}" ] &&
|
[ -z "${1##*.*}" ] &&
|
||||||
|
|||||||
Reference in New Issue
Block a user