Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by PIRob

  1. PIRob

    identify real floating point number

    Hi Thanks for your support in this I have now resolved my problem with your help and the following is my solution Cheers Phil.R #content of test_file.dat #ALPHA 3 4 5 6 7.0 8 9 4 open (FH, "<test_file.dat") or die "cant open file $!"; while (<FH>) {...
  2. PIRob

    identify real floating point number

    Hi Thanks for the input so far althouh not answered yet! a little more explanation may be required... I am reading values from a file so do not have the opportunity to wrap with quotes, because each time I read a "value" into a variable with the format i am stuck with I loose the decimal point...
  3. PIRob

    identify real floating point number

    I have the following code to identify a decimal number, however if the number is 10. or 10.0 format ie no trailing numbers after decimal point or a single trailing zero my function fails can ay one help? sub is_float { #Warning this does not return is_float true when the number ends like:- #...

Part and Inventory Search

Back
Top