What is the use of string function strtonum(string)?
Answer Posted / quickmist
strtonum() will reliably convert a string representation of a number into an integer number. It's reliable because you can pass the min and max value that the you want the input to be within and strtonum() will return an error code if the number falls outside the specified range. This function however expects only 1 '-' symbol to exist in the input and returns a long long integer.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of string functiong sub(regex,replacement)?
In the text file, some lines are delimited by colon and some are delimited by space. Write a command to print the third field of each line.?
Write a command to print the second and third line of a file without using nr?
What is the use of systime function?
What is the use of string function index(string,search) in AWK?
How add a first record and last record to the current file in linux?
What are Associative Arrays?
What are AWK patterns?
What is the use of PRINTF?
What are Unary arithmetic operators?
What are Assignment Operators?
How do you Explicit File output?
What is the use of string function substr(string,position) in AWK?
How to Truncate Integers in AWK?
Write a command to print the fields in a text file in reverse order?