mirror of
https://github.com/dylanaraps/pure-sh-bible
synced 2024-05-17 21:06:36 +02:00
docs: update
This commit is contained in:
parent
48eb245a27
commit
d171c9b651
|
@ -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##*.*}" ] &&
|
||||||
|
|
Loading…
Reference in a new issue