Re: Check the Number is floating point number or not

2007-11-16 Thread John W . Krahn
On Friday 16 November 2007 02:10, sivasakthi wrote: > Hi All, Hello, > How to check the number is floating point number or not??? perldoc -q float John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Check the Number is floating point number or not

2007-11-16 Thread sivasakthi
Hi All, How to check the number is floating point number or not??? I have tried the code following, #! /usr/bin/perl use strict; use warnings; my $val=124718247874.543; if ($val =~ m#^(\d+)\.(\d\d\d)#; { print "it is a float\n"; } Thanks, Siva