Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Write a command to rename the files in a directory with "_new" as postfix?

1141


What are Assignment Operators?

1094


What are Unary arithmetic operators?

1161


How to generate random numbers in AWK?

1260


What is the use of PRINTF?

1232


What is the use of string function substr(string,position) in AWK?

1317


Write a command to print first and last line using sed command?

738


Write a command to find the sum of bytes (size of file) of all files in a directory?

825


What is the use of string function tolower(string)?

1114


How do you Explicit File output?

1138


What is the use of string function length(string) in AWK?

1162


How to execute an AWK script?

1225


what are divisions main frems

1912


How to display even number of records into one file and odd number of records into another file?

782


Write a command to print the line number before each line?

851