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 CONVFMT?
Write a command to find the total number of lines in a file without using nr?
What is the use of ARGIND?
What is the use of string function asort(string,[d])?
What are AWK Numerical Functions?
How to exit from an awk script using the exit command?
Write a command to print first and last line using sed command?
What are Associative Arrays?
How do you Explicit File output?
What are Trigonometric Functions in AWK?
What is the use of OFMT?
What are Conditional expressions in AWK?
What is the use of string function split(string,array,separator)in AWK?
What is the use of string function length(string) in AWK?
What are Arithmetic Expressions in AWK?