[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to check if a field is a number (integer or float)?
From: |
Peng Yu |
Subject: |
How to check if a field is a number (integer or float)? |
Date: |
Sat, 19 Jun 2021 08:17:41 -0500 |
Hi,
I am wondering what is the best way to test if a field is a number
(integer of float). I could use regex. But I am wondering if there is
a more awk-native way to do the test. Also if regex is used, what is
the regex that matches integer/float used awk. Thanks.
--
Regards,
Peng
- How to check if a field is a number (integer or float)?,
Peng Yu <=
Re: How to check if a field is a number (integer or float)?, Peng Yu, 2021/06/19