Hi All,
I have the following code,
[code=perl]
$min=1234567890 1234567890;
$max=1234567890 1234567899;
print "max=$max, min=$min \n";
if ($min < $max)
{
print "Output : ok \n";
}
else
{
print "Output : not ok \n";
}
[/code]
Output:
max=1.234567890 12346e+19, min=1.234567890 12346e+19
Output : not ok
Why The output is in floating point. How can I solve this Issue.
I have the following code,
[code=perl]
$min=1234567890 1234567890;
$max=1234567890 1234567899;
print "max=$max, min=$min \n";
if ($min < $max)
{
print "Output : ok \n";
}
else
{
print "Output : not ok \n";
}
[/code]
Output:
max=1.234567890 12346e+19, min=1.234567890 12346e+19
Output : not ok
Why The output is in floating point. How can I solve this Issue.
Comment